Avatar of Bill Golden
Bill Golden
Flag for United States of America asked on

What is the alternative to the MIN function when you have to recognize a cell is blank?

I have the following formula

=IF(N32>1, IF(MIN(H32:H33, J32:J33)>N32, N32,MIN(H32:H33, J32:J33)), " ")

Which works unless H32:H33 is blank, which occasionally is the case.  I know MIN ignores blank cells but I need someway to recognize the value is zero in H32:H33 when it is blank.
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Shaun Vermaak

8/22/2022 - Mon
Shaun Vermaak

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Bill Golden

I modified your formula...
=IF(OR(ISBLANK(H32),ISBLANK(H33)),"Value is blank",IF(N32>1, IF(MIN(H32:H33, J32:J33)>N32, N32,MIN(H32:H33, J32:J33)), " "))
so that it would return 0 when H32:H33 is blank as follows:
=IF(OR(ISBLANK(H32),ISBLANK(H33)),0,IF(N32>1, IF(MIN(H32:H33, J32:J33)>N32, N32,MIN(H32:H33, J32:J33)), " "))
However, the cell is returning 0 no matter the contents of H23:H33 or J32:J33
Bill Golden

Eureka, I have it...

=IF(ISBLANK(H32:H33),0,IF(N32>0, IF(MIN(H32:H33, J32:J33)>N32, N32,MIN(H32:H33, J32:J33)), " "))

You put me on the right track. Thanks.
Bill Golden

You put me on the right track. Thanks.
Your help has saved me hundreds of hours of internet surfing.
Shaun Vermaak

Anytime :)