Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Is there any way I can check whether a cell is empty?

There is a function ISBLANK() but it returns false when there's a formula in a cell even thought the formula doesn't return anything (or an empty string). I would like it to return true when the formula doesn't return anything as well. So the cell seems to be empty without any value.

share|improve this question

migrated from superuser.com Jul 1 '11 at 16:51

This question came from our site for computer enthusiasts and power users.

3 Answers 3

up vote 28 down vote accepted

You can check whether a cell is empty or not by using the following formula:

=if(C2="";"The cell is empty";"The cell is not empty")
share|improve this answer
2  
Thanks. This one is simpler than mine. It was obviously too trivial for me to think of it. :) –  Robert Koritnik Dec 1 '09 at 13:35

I can use function

=IF(COUNTBLANK(cell:cell)=1;"Blank cell";"Not blank")

that will be one only of the cell is empty.

share|improve this answer

I've searched the internet (Google, search tools, custom range) for references of the ISBLANK function pre-dating the OP's question. The ISBLANK function already existed during the time of asking: ISBLANK reference before 01/12/2009

Therefore this function will suffice:

=IF(ISBLANK(A2)=TRUE;"Blank cell";"Not blank")

There is however one thing to take in consideration:

  • Deleted text, formatted as plain text, isn't empty
share|improve this answer
1  
Adding some more explanation as to why this answers the question would help. –  ChrisF Feb 10 '13 at 23:47
2  
I've already described the problem with isblank() function in my question. It only returns true when cell is actually empty (not having a formula in it either). What I was looking for no content cells if that makes it more clear to you. –  Robert Koritnik Feb 12 '13 at 7:42
    
If you add IFERROR(1/0) it will return TRUE. –  Jacob Jan Tuinstra Feb 12 '13 at 7:49
    
@RobertKoritnik Forgot to mention you. –  Jacob Jan Tuinstra Feb 12 '13 at 8:49
    
@JacobJanTuinstra: Include it where? Division by 0 is always error. –  Robert Koritnik Feb 13 '13 at 8:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.