Count how many cells in a range contain numbers — the simplest counting formula in Excel.
COUNT counts the number of cells in a range that contain numeric values — numbers, dates, and times. It ignores text, blanks, and errors. It is the most basic of Excel's counting functions, and the foundation for understanding COUNTA, COUNTIF, and COUNTIFS.
COUNT(value1, [value2], ...)| Argument | What it means |
|---|---|
| value1 required | A range, cell, or value to count. |
| value2, ... optional | Additional ranges or values. Up to 255 arguments. |
=COUNT(A2:A100)
-- Returns how many cells in A2:A100 contain numbers
=COUNT(A2:A100, C2:C100)
-- Counts numbers across two separate ranges| Function | Counts |
|---|---|
| COUNT | Cells with numbers only (ignores text and blanks) |
| COUNTA | Any non-blank cell (numbers, text, errors) |
| COUNTIF | Cells matching a specific condition |
| COUNTBLANK | Empty cells only |
=COUNTA(A2:A100) - COUNT(A2:A100)
-- Returns how many non-blank cells contain text instead of numbers
-- Useful for catching data entry errors in numeric columnsExcel stores dates as serial numbers, so COUNT includes them. If a column should contain only dates, COUNT is a reliable check for how many valid date entries exist.
Type it in a live spreadsheet, get instant feedback. No videos, no downloads.
Start practising free →