ADDING IF IS BLANK TO EXISTING FORMULA

meppwc

Well-known Member
Joined
May 16, 2003
Messages
647
Office Version
  1. 365
Platform
  1. Windows
I am trying to add to this formula below, that if MAIN!BN2 is a blank cell, then return blank. Currently if BN2 is blank it is returning FALSE.
=COUNTIF('ANALYTICAL TABLES'!A:A,MAIN!BN2)>0

I tried below, but it still keeps returning FALSE opposed to blank
=IF(BN2=",",COUNTIF('ANALYTICAL TABLES'!A:A,MAIN!BN2)>0)
 
Try it like this (using double-quotes instead of single-quotes and adding "MAIN" in front of the BN2 reference):
Excel Formula:
=IF(MAIN!BN2="","",COUNTIF('ANALYTICAL TABLES'!A:A,MAIN!BN2)>0)
Note that if you are entering this formula on the MAIN sheet, you do not actually need the "MAIN" sheet reference at all in either place of this formula.

If it still returns FALSE, it means BN2 is not empty (note that a single blank space is NOT the same as empty).
 
Upvote 0
Solution
You are welcome.
Glad I was able to help!
 
Upvote 0

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