WorksheetFunction.CountBlank(Range) Method

Definition

Counts empty cells in a specified range of cells.

public:
 double CountBlank(Microsoft::Office::Interop::Excel::Range ^ Arg1);
public double CountBlank (Microsoft.Office.Interop.Excel.Range Arg1);
Public Function CountBlank (Arg1 As Range) As Double

Parameters

Arg1
Range

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

Returns

Remarks

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

Applies to