We help IT Professionals succeed at work.

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

130 Views
Last Modified: 2017-03-22
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.
Comment
Watch Question

Senior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Bill GoldenExecutive Managing Member

Author

Commented:
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 GoldenExecutive Managing Member

Author

Commented:
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 GoldenExecutive Managing Member

Author

Commented:
You put me on the right track. Thanks.
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
Anytime :)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions