Why =if(A2:A4="",1,0) will output #VALUE ?

G

Guest

How to check if there is empty cell in a range by using IF Statement ?

I used to use IF Statement to detect empty cell within a range as EXAMPLE
listed below. It works in the past but suddenly fails and output "#VALUE".
Why ?

BEFORE :
Statement : =IF(A2:A4="",1,0)
When A3 = "Null"
Output : "1"

PRESENT :
Output : "#VALUE"
 
J

JE McGimpsey

One way:

=--(COUNTIF(A2:A4,"")>0)

alternatively (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=OR(A2:A4="")


Don't know why your formula worked in the past...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top