ID EN
#Statistical

COUNTBLANK

Excel Functions

Count cells that are blank

Syntax

EXCEL
=COUNTBLANK(range)

Arguments

Parameter Description
range The range in which to count blank cells.

Return Value

A number representing blank cells

Details

The COUNTBLANK function returns a count of empty cells in a range. Cells that contain text, numbers, errors, spaces, etc. are not counted. Formulas that return an empty string ("") are counted as blank. COUNTBLANK takes just one argument, range, which must be a cell range. In the example shown, the formula in cell E6 is: COUNTBLANK returns 3 since there are 3 blank cells in the range. Note that cell B12 is not included because it contains a space character (" "). Cell B13 contains a formula that returns an empty string: COUNTBLANK considers B13 blank and includes it in the count. The IF function is often used to return empty strings. For example, if A1 contains 21, this formula in B1 will return an empty string:

Examples

Examples

In the example shown, the formula in cell E6 is:

EXCEL
=COUNTBLANK(B5:B15) // returns 3
Examples

COUNTBLANK returns 3 since there are 3 blank cells in the range. Note that cell B12 is not included because it contains a space character (" "). Cell

EXCEL
="" // formula in B13
Formulas that return empty strings

The IF function is often used to return empty strings. For example, if A1 contains 21, this formula in B1 will return an empty string:

EXCEL
=IF(A1>30,"Overdue","")

See Also

COUNTA COUNT ISBLANK