In Excel: use =COUNT(range) for numbers, =COUNTA(range) for any non-empty cell, or =COUNTIF(range, criteria) to count matches.
Operators >, >=, <, <=, <> and the * / ? wildcards all work, exactly as in Excel. Matching is case-insensitive.
- Not blank (COUNTA)
- 6
- Numbers (COUNT)
- 3
- Text cells
- 3
- Blank (COUNTBLANK)
- 2
8 cells read
COUNT only counts numbers; COUNTA counts anything that is not blank. A number stored as text is text to both.
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
What this does
Counting splits into three jobs and three functions. COUNT tallies only cells containing numbers; COUNTA tallies every non-empty cell including text; COUNTBLANK tallies the empties. When you only want cells meeting a condition, COUNTIF (one rule) and COUNTIFS (several) do the filtering for you. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. Treat “count in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected cells shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
In a list A1:A10 with some blanks, =COUNTA(A1:A10) returns how many cells have anything in them, while =COUNT(A1:A10) returns only the numeric ones. To count orders over €100, =COUNTIF(A1:A10,">100"). To count "North" entries in column B, =COUNTIF(B1:B10,"North"). Counting answers the “how many” questions that drive every report — orders placed, tickets open, rows matching a filter. Picking the right one of COUNT, COUNTA and COUNTIF is the whole skill. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
In Google Sheets
Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. The short version of “count in excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.
Common mistakes
- Using
COUNTwhen you meanCOUNTA—COUNTskips text and returns too few. - Putting the criteria without quotes (">100" needs the quotes).
- Counting a range that includes the header row, inflating the total by one.
- Expecting
COUNTIFto be case-sensitive — it is not; use EXACT insideSUMPRODUCTfor case rules.
Frequently asked questions
COUNT vs COUNTA?
COUNT only counts numbers; COUNTA counts any non-empty cell, text included. For empties, use COUNTBLANK.
How do I count with two conditions?
Use COUNTIFS: =COUNTIFS(B1:B10,"North",A1:A10,">100") counts rows that are North AND over 100.
How do I count unique values?
In modern Excel and Google Sheets, =COUNTA(UNIQUE(range)) counts distinct entries in one step.
Other ways people ask this
On the way here you may have searched this as “count formula in excel”, “how to use count in excel”, “count a in excel” and “count of excel” — it is all the same task, and this page is the single, complete answer to it.
This guide also answers
- how to do a count in excel
Why do people search for this in so many different ways?
Because the same task has many names. “count formula in excel”, “how to use count in excel”, “count a in excel” all point at the one operation explained on this page, which is why they all lead here.