Explanation

In this example, the goal is to count cells in arangethat are blank.

Counting blank cells in Excel can be tricky because cells canlookblank even when they are not actually empty.

The article below explains three different approaches.

Excel formula: All cells in range are blank

COUNTBLANK function

The simplest way to count empty cells in a range is to use theCOUNTBLANK function.

COUNTBLANK is fully automatic, so there is nothing to configure.

The secondrange/criteriapair selects empty cells.

Excel formula: Count cells that are not blank

See also:50 examples of formula criteria.

SUMPRODUCT function

Another way to count blank cells is with the SUMPRODUCT function.

you could extend the logic used in SUMPRODUCT with other functions as needed.

Excel formula: Sum if not blank

The SUMPRODUCT function is more versatile thanRACON functionslike COUNTIFS, SUMIFS, etc.

and you will often see it used in formulas that solve tricky problems.

you’ve got the option to readmore about SUMPRODUCT here.

Excel formula: If cell is blank

Cells that contain text, numbers, errors, spaces, etc.

Formulas that return empty strings ("")arecounted as blank.

COUNTA does not count empty cells.

Excel COUNTBLANK function

Excel COUNTA function

Excel COUNTIF function

Excel SUMPRODUCT function