Cell is not blank

D

Dave Peterson

=if(a1="","it's blank","it's not blank")
or
=if(a1<>"","it's not blank","it's blank")

(Excellent name!)
 
S

Shane Devenshire

Hi,

Another way to test is

=IF(ISBLANK(A1),true,false)

another way

=IF(COUNTBLANK(A1),"blank","notblank")

technically you could also use

=IF(COUNTA(A1),"notblank","blank")
 
T

T. Valko

If the cell is *empty* (which can be considered to be different than blank),
then all 3 of those of those formulas return what you'd expect. However, if
the cell contains a formula blank ("") then the results are different in 2
out of 3 of the formulas.

You can reduce this:

=IF(ISBLANK(A1),TRUE,FALSE)

To:

=ISBLANK(A1)
 
Top