# 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
###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
To average positives....

=AVERAGEIFS(A:A,A:A, "<>",E:E, ">0")

To average negatives...

=AVERAGEIFS(A:A,A:A, "<>",E:E, "<0")
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
Excellent - thanks!

Question - is there a similar method for Min() MAX()?  Cant seem to see any
0
Commented:
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.
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.