COUNT Function

Excel Functions › Statistical

All versions Statistical

The Excel COUNT function counts how many cells in a range contain numbers. Text, blanks, and logical values are skipped, making it the quick way to tally numeric entries.


Quick answer:
=COUNT({1,"x",3,TRUE}) = 2 (only the numbers)

Syntax

=COUNT(value1, [value2], ...)
ArgumentDescription
value1RequiredThe first item, cell, or range to count numbers in.
value2, ...OptionalUp to 255 additional items or ranges.

How to use it

COUNT tallies numeric values only. Numbers, dates, and times count; text, blank cells, and logical values inside a range are ignored.

=COUNT({1,"x",3,TRUE}) // = 2
=COUNT({10,20,30,40}) // = 4

To count non-empty cells of any type (including text), use COUNTA. To count empty cells, use COUNTBLANK. To count by condition, use COUNTIF or COUNTIFS.

Dates count as numbers. Because Excel stores dates and times as serial numbers, COUNT includes them — handy for counting how many rows actually have a date filled in.

Try it: interactive demo

Live demo

Pick a COUNT example to see the formula and its result.

Result:

Practice workbook

📊
Download the free COUNT practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What does COUNT actually count?
Only cells that contain numbers (including dates and times, which Excel stores as numbers). Text, blanks, and logical values inside a range are not counted.
How is COUNT different from COUNTA?
COUNT counts numbers only; COUNTA counts every non-empty cell, including text and logical values. Use COUNTA when you want a tally of all filled cells.
Does COUNT include TRUE/FALSE?
Logical values in a range are not counted. (A logical passed as a direct argument, like =COUNT(TRUE), is counted — but that's an unusual case.)
How do I count cells that meet a condition?
Use COUNTIF for a single condition or COUNTIFS for multiple conditions across several ranges.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: COUNTA · COUNTBLANK · COUNTIF · COUNTIFS · SUM · AVERAGE