COUNT Function
The Excel COUNT function returns the number of numeric values in its arguments. It counts dates, percentages, zero, and numeric formula results while ignoring referenced text, logical values, blanks, and numbers stored as text.
| Excel COUNT Function | |||||||
| COUNT measures numeric cells, not merely filled cells. Change the cream values and watch each count update. | |||||||
| Source data, editable | COUNT examples | ||||||
| Value Type | Mixed Value | Secondary Value | COUNT sees number? | Example | Formula syntax | Result | |
| Standard number | 120 | 10 | Yes | Complete mixed range | =COUNT(B12:B21) | 6 | |
| Text | Pending | 20 | No | Selected cells only | =COUNT(B12,B15,B18,B19,B20,B21) | 4 | |
| Blank | No | Two separate ranges | =COUNT(B12:B16,C12:C16) | 6 | |||
| Zero | 0 | n/a | Yes | Date, %, logical, text, formula | =COUNT(B17:B21) | 3 | |
| Negative number | -8 | 30 | Yes | ||||
| True date | Jan 15, 2026 | 40 | Yes | What COUNT includes | |||
| Percentage | 25% | Yes | Counts numbers, zero, negatives, dates, percentages, and numeric formula results. | ||||
| Logical value | TRUE | 50 | No | Ignores referenced blanks, text, logical values, and numbers stored as text. | |||
| Number stored as text | '42 | 0 | No | Use COUNTA when the question is whether a cell is non-empty. | |||
| Formula returns number | 42 | 21 | Yes | ||||
| Reliability checks | |||||||
| Mixed-range count matches the six explicitly numeric cells | OK | ||||||
| Special-types count matches the date, percentage, and formula result | OK | ||||||
Overview
The Excel COUNT function answers a specific question: how many supplied values are numeric? It does not count every filled cell, which makes the distinction between COUNT and COUNTA important in mixed data.
Quick reference
Syntax: =COUNT(value1, [value2], ...)
Returns: The number of numeric values supplied. (integer)
Arguments:
value1(required) — The first value, cell reference, range, or array to inspect for numbers.value2(optional) — An additional value, cell reference, range, or array; more optional arguments may follow.
The bracketed arguments after value1 are optional. Add further values, references, ranges, or arrays when their numeric entries belong in the same count.
Common uses
- Measure the number of numeric observations before calculating a statistic.
- Check numeric completeness in an imported or manually entered column.
- Count dates, times, percentages, and other numeric storage types.
- Reconcile the denominator used by
AVERAGE.
Calculations
COUNT examines the supplied arguments and returns how many numeric values it finds. Standard numbers, zero, negative numbers, fractions, percentages, true Excel dates and times, and formulas returning numbers all contribute.
Referenced text, logical values, blank cells, and numbers stored as text do not contribute. The display format does not determine the result: a date may look like 15-Jan-2026, but Excel stores it as a serial number, so COUNT includes it. Conversely, text such as '42 looks numeric but remains text and is excluded.
Use commas to inspect selected cells or several ranges in one formula. COUNT returns zero when no numeric values are present.
Function behavior
Situation | Behavior |
|---|---|
Blank cells | Ignored. |
Text in referenced cells | Ignored, including numbers stored as text. |
Logical values in referenced cells | Ignored. |
Logical values or numeric text typed directly | Counted; the same values inside a reference are ignored. |
Dates and times | Counted when stored as true Excel serial values. |
Percentages | Counted because percentages are numeric values with special formatting. |
Formula results | Counted when the returned value is numeric. |
Errors | Not counted when they occur in referenced cells, though the source error remains. |
Common errors
Using COUNT to measure filled cells
What happens:
Text labels, statuses, and logical values are omitted even though the cells are populated.
Better approach:
Use COUNTA when any non-empty value should contribute.
Assuming a number-looking value is numeric
What happens:
Imported values such as '42 are stored as text and do not increase the count.
Better approach:
Correct the source data type or convert the text to a genuine number before counting it.
Forgetting that dates are numbers
What happens:
A date-formatted cell increases the result unexpectedly.
Better approach:
Inspect the underlying value and use a condition-based count if only a particular kind or date range should qualify.
Example
Example 1 — Count Numbers in a Mixed Range
=COUNT(B12:B21)
The example range contains a standard number, zero, a negative number, a date, a percentage, and a numeric formula result. Those six cells count; text, a blank, a logical value, and a number stored as text do not.
Example 2 — Count Selected Cells
=COUNT(B12,B15,B18,B19,B20,B21)
Only the six named cells are inspected. Four are numeric—the standard number, zero, percentage, and formula result—so the result is 4.
Example 3 — Count Across Multiple Ranges
=COUNT(B12:B16,C12:C16)
This formula counts numeric values across two separate five-cell blocks. Each block contributes three numbers, producing 6.
Example workbook
The workbook contains COUNT Example and Notes tabs. Ten mixed value types are classified with live formulas, and four COUNT examples demonstrate a full range, selected cells, multiple ranges, and special numeric storage types. Two checks reconcile the key results.
Key takeaway
COUNT measures numeric values, not visible occupancy: dates and percentages count, while referenced text, logical values, blanks, and numeric text do not.