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

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Wayne Taylor (webtubbs)Commented:
To average positives....

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

To average negatives...

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

Experts Exchange Solution brought to you by

Your issues matter to us.

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

Start your 7-day free trial
GNOVAKAuthor Commented:
Excellent - thanks!

Question - is there a similar method for Min() MAX()?  Cant seem to see any
Wayne Taylor (webtubbs)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.
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.