# Count cells that contain numbers

=COUNT(rng)

To count the number of cells that are not blank, use the COUNT function. In the generic form of the formula (above) **rng** represents a range of cells.

In the example, the active cell contains this formula:

=COUNT(B5:B9)

The COUNT function is fully automatic. It counts the number of cells in the range that contain numbers and returns the result.

### Count cells that do not contain numbers

To count the number of cells in a range that __do not__ contain numbers, use this SUMPRODUCT function:

=SUMPRODUCT(--NOT(ISNUMBER(B5:B9)))

## 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 200+ Excel Shortcuts

Get over 200 Excel shortcuts for Windows and Mac in one handy PDF.