Quick Links



Home > Member Services > Publications > Magazines & Journals > INTHEBLACK > Excel yourself: September 2006

Excel yourself: September 2006


Neale Blackwood CPA finds a non-blank solution.

Q. I have a range of IF functions that return “” in certain circumstances. I want to count the number of cells without “”, but COUNTIF won’t do it. Is there a way to count the non-blank cells in the range?
A. The SUMPRODUCT function can count non-blanks. Assuming the range is C1:C20 the following formula will count the non-blanks, or those cells without “”.
=SUMPRODUCT((C1:C20<>””)*1)
The <> symbols in the formula mean not equal to. You could also use this formula.
=COUNTA(C1:C20)-COUNTIF(C1:C20,””)
COUNTIF will count blank cells but not non-blank cells.


Reference: September 2006, volume 76:08, p. 18


Page last updated: Wednesday, 8 October 2008

Top arrow Top


Login Log in
Print-friendly version Print-friendly version
Add to my links Add to my links
Email this page Email this page