Count cells that are blank
=COUNTBLANK(range)
| Parameter | Description |
|---|---|
range |
The range in which to count blank cells. |
In the example shown, the formula in cell E6 is:
=COUNTBLANK(B5:B15) // returns 3
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
="" // formula in B13
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:
=IF(A1>30,"Overdue","")