COUNTBLANK
Counts blank cells, including empty-string text results.
COUNTBLANK treats both true empty cells and "" text values as blank.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=COUNTBLANK(range, [range2], ...)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
range | any | Required | — |
range2 | any | Optional | — |
Accepts a variable number of arguments. Minimum: 1.
Differences from Excel
Formualizer accepts multiple arguments and can count scalar values. Excel takes a single range reference.
Remarks
- Empty-string text values are counted.
- Numbers, booleans, and non-empty text are not counted.
- Supports scalar arguments and ranges.
Examples
Count one genuinely empty cell and one formula returning empty text.
Formula =COUNTBLANK(A1:A3)
| A | |
|---|---|
| 1 | 3 |
| 2 | (blank) |
| 3 | ="" |
Expected result 2
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Formualizer accepts multiple references and counts one blank in A2 and two in B1:B2.
Formula =COUNTBLANK(A2,B1:B2)
| A | B | |
|---|---|---|
| 1 | (blank) | |
| 2 | (blank) | (blank) |
Expected result 3
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
A populated numeric cell contributes no blanks.
Formula =COUNTBLANK(A1)
| A | |
|---|---|
| 1 | 3 |
Expected result 0
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Count blanks in a range
Formula =COUNTBLANK(A1:A3)
| A | |
|---|---|
| 1 | 10 |
| 2 | "" |
Expected result 2
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Does COUNTBLANK include cells that contain ""?
Yes. Empty-string text values are treated as blank for COUNTBLANK.
Are numeric zeros considered blank?
No. Zero is a numeric value, so it is not counted as blank.