Share via


WorksheetFunction.CountBlank Method (Excel)

Counts empty cells in a specified range of cells.

Syntax

expression .CountBlank(Arg1)

expression A variable that represents a WorksheetFunction object.

Parameters

Name

Required/Optional

Data Type

Description

Arg1

Required

Range

The range from which you want to count the blank cells.

Return Value

Double

Remarks

Cells with formulas that return "" (empty text) are also counted. Cells with zero values are not counted.

See Also

Concepts

WorksheetFunction Object

WorksheetFunction Object Members