ISBLANK for 2 cells

toony

Board Regular
Joined
Mar 20, 2014
Messages
91
Office Version
  1. 365
I need a blank result if cells bx and BZ are empty but don' t get it right. I have tried several ways in terms of parenthesis and just using a ISBLANK function instead of 2 but nothin seems to work and don't know what else to do. If you can help me please.

=IF(AND(ISBLANK(BX3)),(ISBLANK(BZ3)),"",BY3*CA3)))
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hi,

Try:

Excel Formula:
=IF(AND(ISBLANK(BX3),ISBLANK(BZ3)),"",BY3*CA3)

OR, if you have formulas in BX3, BZ3, use:

Excel Formula:
=IF(AND(BX3="",BZ3=""),"",BY3*CA3)
 
Upvote 0
Brilliant. Many thanks. I specially like the =IF(BX3&BZ3="","",BY3*CA3) :)
Though I think that i tried something similar and it wasn't working but that happened to me before with excel. You are set on one way and for whichever reason (format, etc) is not working. But you then try an alternative way and vuala, it miracusly works. Many thanks
 
Upvote 0
Hi Phuoc. Just to point out that I've tried your option with the ampersand (=IF(BX3&BZ3="","",BY3*CA3) .
Have tried it as below but it gives me an empty cell even if i put a number or string (tried both) in cell Y20.......any ideas why it would be?
=IF(W20&X20="","",Y20)
 
Upvote 0
=IF(W20&X20="","",Y20)
That formula says that if W20 and X20 are both empty to put "" in whatever cell the formula is in. It doesn't matter what is in Y20 if both W20 and X20 are blank.
Put something in W20 or X20 or both and your formula will then return whatever is in Y20
 
Upvote 0
Ok, I see thanks. Very interesting (and shorter) to use the ampersand instead
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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