WorkbookLogic
FunctionStatisticalbeginnerCOUNTIF

COUNT Function

By WorkbookLogic

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.

ExcelLast reviewed Sep 11, 2026
count-function-v1.0.0.xlsx
Excel COUNT Function
COUNT measures numeric cells, not merely filled cells. Change the cream values and watch each count update.
Source data, editableCOUNT examples
Value TypeMixed ValueSecondary ValueCOUNT sees number?ExampleFormula syntaxResult
Standard number12010YesComplete mixed range=COUNT(B12:B21)6
TextPending20NoSelected cells only=COUNT(B12,B15,B18,B19,B20,B21)4
BlankNoTwo separate ranges=COUNT(B12:B16,C12:C16)6
Zero0n/aYesDate, %, logical, text, formula=COUNT(B17:B21)3
Negative number-830Yes
True dateJan 15, 202640YesWhat COUNT includes
Percentage25%YesCounts numbers, zero, negatives, dates, percentages, and numeric formula results.
Logical valueTRUE50NoIgnores referenced blanks, text, logical values, and numbers stored as text.
Number stored as text'420NoUse COUNTA when the question is whether a cell is non-empty.
Formula returns number4221Yes
Reliability checks
Mixed-range count matches the six explicitly numeric cellsOK
Special-types count matches the date, percentage, and formula resultOK

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.