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.
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. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. For “excel count if not blank”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected blanks change, and only then apply the same setup to the full sheet. 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 is what makes a workflow that saves repeating the same clicks every week useful in real work: repeatable, auditable, and not dependent on memory or luck.
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. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
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. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. If you take one thing from this page on “excel count if not blank”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.
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
This is also commonly searched as “excel count cells not blank”, “excel count cells that are not blank”, “count if empty excel” and “excel count if not empty”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Why do people search for this in so many different ways?
Because the same task has many names. “excel count cells not blank”, “excel count cells that are not blank”, “count if empty excel” all point at the one operation explained on this page, which is why they all lead here.