I have a column of cells filled with formula that give "" on error, and a text string if no error. In a second column I'm giving a formula with:


as well as:


I would expect either of these to count only cells that do not contain "" but it counts all of the cells. Strange, maybe it doesn't count cells with formula as "" even if that is what the formula yields, so I test with:


as well as:


Both of which yields the appropriate number of cells that contain "".

A solution is to simply subtract the total count from the count of "" but that is not elegant, just wondering if there is something I'm doing wrong or if others do not see this behavior.

2 Answers 2


Will give the you the number of non-blank cells in the range, ignoring both empty strings ("") and empty cells.


To count values use the COUNTA function.

So =COUNTA(Range)

This will give you the number of values in your range.

The opposite can be achieved using =COUNTBLANK(Range)

This will provide a count of blank cells in your range.


  • This gives the same behavior. Countblank counts as intended while counta gives the number of cells in the range. Nov 16, 2015 at 19:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .