Professional Documents
Culture Documents
Excel Countblank Function
Excel Countblank Function
Summary
The Excel COUNTBLANK function returns a count of empty cells in a range. Cells
that contain text, numbers, errors, etc. are not counted. Formulas that return empty
text are counted.
Purpose
Count cells that are blank
Return value
A number representing blank cells
Syntax
=COUNTBLANK (range)
Arguments
range - The range in which to count blank cells.
Usage notes
Use the COUNTBLANK function to count blank cells in a range, where the
word blank means empty. For example, COUNTBLANK(A1:A10) will count the
number of blank cells in the range A1:A10.
Cells that contain text, numbers, errors, etc. are not counted.
Formulas that return empty text ("") are considered blank and will be counted.
Cells that contain zero are considered not blank and will not be counted.
Return blank if
To return a blank result using the IF function, you can use an empty string (""). In the
example shown, the formula in D5 (copied down) is: =IF(B5=1,C5,"") How this
formula works This formula is based on...
Related videos
Related functions