ISBLANK with AND Formula Returning Value Error

ScottTemple

Board Regular
Joined
Dec 28, 2023
Messages
103
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have the following formula in cell O2:

=IF(AND(ISBLANK(I2),ISBLANK(H2)),"",((+H2)/(I2^2*3.1415929/4*0.16*12)))

However, when I have a value in H2 and no value in I2 I get a #DIV/0! error, but if I have a value in I2 and no value in H2, I get zero. Any suggestions?
 
It is quite simply replacing:
Excel Formula:
ISBLANK(H2)
in your formula with:
Excel Formula:
H2=""

So it would look like this:
Excel Formula:
=IF(OR(ISBLANK(I2),H2=""),"",((+H2)/(I2^2*3.1415929/4*0.16*12)))
 
Upvote 1
Solution

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Do you happen to know how that works with a Spill Array? I'm using that setup in a different workbook and I have this for my formula:

=IF(OR(ISBLANK(INDEX(A2#,,5),(INDEX(A2#,,6)="","",IF(T2#,(((INDEX(A2#,,6)*4)/3.14)/(T2#*(INDEX(A2#,,5)^2)))/12)))
 
Upvote 0
Sweet, thanks Joe!
You are welcome.

Do you happen to know how that works with a Spill Array? I'm using that setup in a different workbook and I have this for my formula:

=IF(OR(ISBLANK(INDEX(A2#,,5),(INDEX(A2#,,6)="","",IF(T2#,(((INDEX(A2#,,6)*4)/3.14)/(T2#*(INDEX(A2#,,5)^2)))/12)))
That is really a different question that would warrant its own thread.
(I don't know that I would be able to help you with that question, anyhow).
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top