
π This article includes 1 downloadable practice file β
In this article
- Syntax & Parameter Breakdown
- Where You Will Use It
- Practical Worked Examples
- Mistakes People Make & How to Avoid Them
- Frequently Asked Questions
- Does COUNT count dates and times?
- How do you count cells that contain numbers stored as text?
- What is the difference between COUNT and COUNTA?
- COUNT in practice
- Where you will use it
- Worked example
- Mistakes people make
- Continue learning
The COUNT function in Excel is an essential spreadsheet tool designed to Count the number of cells in a range or argument list that contain numbers, including positive/negative values, decimals, and dates.
Syntax & Parameter Breakdown
=COUNT(value1, [value2], ...)
| Argument | Requirement & Description |
|---|---|
value1 |
Required. The first item, cell reference, or range within which you want to count numbers. |
value2, ... |
Optional. Up to 255 additional items, cell ranges, or values to count. |
Where You Will Use It
Used to determine sample sizes, count completed numeric survey responses, verify transaction records, and calculate valid data points in statistical models.
Practical Worked Examples
Here are common real-world formula scenarios utilizing COUNT:
| Formula | Expected Behavior & Purpose |
|---|---|
=COUNT(A2:A100) |
Counts how many rows in A2:A100 contain valid numeric data or dates. |
=COUNT(B2:D50) |
Counts numbers across a multi-column rectangular grid. |
=COUNT(A2:A100, C2:C100) |
Counts numeric cells across non-contiguous ranges. |
Mistakes People Make & How to Avoid Them
COUNT strictly ignores text, blank cells, logical TRUE/FALSE values, and errors. Numbers stored as text (e.g. from CSV imports with leading apostrophes) are not counted.
Frequently Asked Questions
Does COUNT count dates and times?
Yes! Excel stores dates and times as serial numbers, so COUNT recognizes and counts them accurately.
How do you count cells that contain numbers stored as text?
Use =COUNT(INDEX(–A2:A100,)) or convert the column to numbers using Data > Text to Columns.
What is the difference between COUNT and COUNTA?
COUNT tallies only numeric cells, while COUNTA counts any cell that is not empty (including text and errors).
π Master spreadsheet formulas with our Free Excel Course or explore related functions in the Formula Lab.
Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.
COUNT in practice
Where you will use it
- How many numeric marks were entered
- How many invoices have an amount
- Check a column has no text-numbers
Worked example
Running count of numeric cells only.
| Entry | Formula | Result |
|---|---|---|
| 120 | =COUNT($A$2:A2) | 1 |
| Absent | =COUNT($A$2:A3) | 1 |
| (blank) | =COUNT($A$2:A4) | 1 |
| 95 | =COUNT($A$2:A5) | 2 |
Results calculated in Excel.
Mistakes people make
| Mistake | What to do instead |
|---|---|
| Using COUNT to count names | COUNT counts numbers only; use COUNTA |
| Numbers stored as text are skipped | Compare COUNT with COUNTA to find them |
π Practice files for this article
- πPractice workbook: Statistics basics22 tasks on realistic sales data β type your formula, the Check column turns green when it is right. Answers sheet included.β¬ XLSX Β· 34 KB
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time β plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul βBuild this skill next
This page is a quick function reference. Use it for syntax, then practise the function in a broader workflow.
Stuck on a step? Ask a question and the AI answers using this article.