# Count cells that are blank

=COUNTBLANK(range)

To count the number of cells that are blank, you can use the COUNTBLANK function. In the example shown, the formula in cell E5 is:

=COUNTBLANK(B5:B14)

Because there are two empty cells in the range, COUNTBLANK returns 2

The COUNTBLANK function counts the number of cells in the range that don't contain any value and returns this number as the result. Cells that contain text, numbers, dates, errors, etc. are not counted. COUNTBLANK is fully automatic. Just pass in a range, and COUNTBLANK will return a result. In the example shown, the formula in E5 is:

=COUNTBLANK(B5:B14) // returns 2

Because there are two empty cells in the range, COUNTBLANK returns 2.

### Count not blank

To count cells that are *not* blank, you can use the COUNTA function. The formula in E6 is:

=COUNTA(B5:B14) // returns 8

COUNTA returns 8, since eight cells in the range contain a value. For more details and options, see this example.

## Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

## Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.