COUNTBLANK()

Syntax. COUNTBLANK(range)

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

Arguments

  • 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.

Note

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

COUNTIF()

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.