Syntax. COUNTBLANK(range)

Definition. This function counts the empty cells in a cell range.


  • range (required). The range for which you want to count the blank cells

Background. Like the COUNT() and COUNTA() functions, this function is especially useful when you work with large sets of data.


Cells with formulas that return empty strings (“”) are also counted. Cells with zero values are not counted.

Example. If you use the COUNTBLANK() function in the example used for the COUNT() function, COUNTBLANK() returns 3 for the cell range C3:C25. The table in Figure 12-3 in the discussion of the COUNT() function contains three cells without numbers or text.

See Also


Get Microsoft® Excel® 2010 Formulas & Functions Inside Out now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.