How to Use COUNT Function in Excel

This guide treats “use count function in excel” the way busy spreadsheet users actually want it: answer first, a live tool to prove it on your own data, then the reasoning. It is written for Excel but calls out every place Google Sheets differs, and the platform toggle at the top switches all shortcuts between Windows and Mac so nothing here assumes the keyboard you are not on.

Exact answer

In Excel: use =COUNT(range) — it counts numeric cells only, so text and blanks are excluded and a column of text-stored numbers returns 0.

On this page8

Syntax

=COUNT(value1, [value2], ...)

Arguments

Argumentrequired / optionalDescription
value1requiredThe first range or value. Only numbers are counted.
value2, ...optionalFurther ranges or values.

Related functions

COUNTACOUNTIFCOUNTBLANK
ƒxCell CounterLive

Operators >, >=, <, <=, <> and the * / ? wildcards all work, exactly as in Excel. Matching is case-insensitive.

Not blank (COUNTA)
6
Not blank (COUNTA)
6
Numbers (COUNT)
3
Text cells
3
Blank (COUNTBLANK)
2

8 cells read

=COUNTA(A2:A9)

COUNT only counts numbers; COUNTA counts anything that is not blank. A number stored as text is text to both.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template

What this does

COUNT counts how many cells hold numbers. That restriction is the whole point of the function and the source of most confusion about it: text, blanks and logical values are all excluded, so a column of 500 populated cells can return 0 if the numbers arrived as text from an import. Dates count, because they are numbers underneath. When the goal is "how many cells have anything in them", COUNTA is the function; when it is "how many are empty", COUNTBLANK. 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. Treat “use count function 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 formula 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

A response column B2:B500 where some respondents skipped the question: =COUNT(B2:B500) returns how many actually gave a numeric answer, while =COUNTA(B2:B500) also counts anyone who typed "n/a". The gap between the two figures is precisely the number of non-numeric responses. COUNT is the fastest check that a column really contains numbers, which is why it doubles as a data-quality test on imported data. 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

If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. 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. Treat “use count function in excel” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.

Common mistakes

  • Expecting COUNT to count text — it does not, and a text-formatted numeric column returns 0.
  • Using COUNT to size a list that contains names or labels; COUNTA is the one for that.
  • Forgetting that dates count as numbers, which is usually convenient but occasionally surprising.

Frequently asked questions

What is the difference between COUNT and COUNTA?

COUNT counts numbers only. COUNTA counts every non-empty cell, whatever it contains.

Why does COUNT return 0?

There are no numeric values — almost always because the numbers are stored as text after an import. Convert them and the count appears.

Does COUNT include dates?

Yes. Dates are stored as serial numbers, so they count.

Other ways people ask this

This is also commonly searched as “count function in excel”, “how to use the count function in excel”, “count functions in excel” and “excel function count”. 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. “count function in excel”, “how to use the count function in excel”, “count functions in excel” all point at the one operation explained on this page, which is why they all lead here.