Link to home
Start Free TrialLog in
Avatar of Jerry N
Jerry NFlag for United States of America

asked on

Average only other column's non blank, negative or positive values

I have a sheet that has a few columns. The pertinent two are Total Hours and Value
There are blank lines within the range.
I wish to average Total hours without counting blanks in the Value  column and only when the value column is negative.
I also wish to average Total hours without counting blanks in the Value  column and only when the value column is positive.

(see enclosed)
I know how to average ignoring blank lines with Averageif() but the other column reference as well as the negative  (or positive) stumps me.
Sample-Avg-question.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Wayne Taylor (webtubbs)
Wayne Taylor (webtubbs)
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jerry N

ASKER

Excellent - thanks!

Question - is there a similar method for Min() MAX()?  Cant seem to see any
I wish there was a MINIFS and MAXIFS, but unfortunately there isn't. You can use an array formula though...

=MIN(IF(A:A="", E:E))

Instead of just pressing Enter after typing the formula, use Ctrl+Shift+Enter and curly brackets should wrap the formula.