Formualizer Docs

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

ArgumentTypeRequiredDefault
rangeanyRequired—
range2anyOptional—

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)

Input cells
A
13
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)

Input cells
AB
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)

Input cells
A
13

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)

Input cells
A
110
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?.

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.

Implementation

Engine source

On this page