Count blank
COUNTBLANK Function¶
The COUNTBLANK function in Excel is used to count the number of empty (blank) cells in a specified range. It is
particularly useful when you want to identify missing data or gaps in a dataset.
Key Features of COUNTBLANK:¶
- Counts only empty cells within the specified range.
- Cells containing formulas that return empty strings (
"") are counted as blank. - Cells containing zero (
0), text, errors, or logical values are not counted as blank. - Frequently used for data validation and quality checks to find missing entries.
Syntax:¶
- range: The range of cells in which you want to count blank cells.
Examples:¶
-
=COUNTBLANK(A1:A10)Counts the number of empty cells in the rangeA1:A10. Result: A numeric value representing the count of blank cells within that range. -
=COUNTBLANK(A1:C10)Counts the number of empty cells across a multi-column range fromA1toC10. Result: The total number of blank cells in the entire range. -
=COUNTBLANK(B2:B100)Counts blank cells in a single column range, useful for checking how many entries are missing in a data column. Result: The count of blank cells inB2:B100.
Notes:¶
- Cells that contain formulas returning an empty string (
="") are treated as blank and will be counted. - Cells containing a space character (
" ") are not considered blank. - If no cells in the range are blank, the result will be
0. - To count non-empty cells, consider using the
COUNTAfunction. To check if an individual cell is blank, use theISBLANKfunction.
Tip: Use the
COUNTBLANKfunction to quickly audit your data for missing values, especially before running calculations or creating summaries that require complete datasets.