Excel does not have a single "count command" — instead it has a small family of count functions, and the one most people mean is COUNT, which counts how many cells in a range contain numbers. The quickest way to use it is to click an empty cell, type =COUNT(A1:A20) (replacing A1:A20 with your own range) and press Enter. The result is the number of numeric cells in that range. If you want to count cells with anything at all in them, use COUNTA instead, and to count cells matching a specific value, use COUNTIF. Below is everything you need to get any of these working.

What You'll Need

  • A spreadsheet in Microsoft Excel (desktop, Excel for the web, or the Excel mobile app — the formulas are identical in all of them)
  • A range of cells you want to count
  • No add-ins, downloads or special setup — the count functions are built in

Step-by-Step

  1. Open your workbook and click the sheet tab containing the data you want to count.
  2. Click an empty cell where you want the count to appear. Avoid placing the formula inside the range you are counting.
  3. Type the equals sign and the function name. For counting numeric cells, type =COUNT( — Excel will show a small tooltip reminding you of the syntax.
  4. Select your range. Click and drag over the cells you want counted (for example A1:A20), or type the range reference manually. The formula should now read something like =COUNT(A1:A20).
  5. Close the parenthesis and press Enter. The cell displays the number of cells in that range that contain numbers. Empty cells, text and error values are ignored.
  6. Use the right variant for your data:
    • =COUNTA(A1:A20) counts every non-empty cell, including text and numbers.
    • =COUNTBLANK(A1:A20) counts empty cells.
    • =COUNTIF(A1:A20, "Paid") counts cells equal to "Paid" — replace Paid with any value; for numbers, omit the quotes, e.g. =COUNTIF(B1:B20, 500).
    • =COUNTIFS(A1:A20, "Paid", C1:C20, ">100") counts rows meeting several conditions at once.
  7. Press Enter to confirm and the result appears. To edit it later, double-click the cell or edit in the formula bar.

Common Mistakes

  • Using COUNT on text data. COUNT only tallies numbers, so it returns 0 on a column of names. Use COUNTA for text.
  • Counting "numbers" that are actually text. Cells containing numbers stored as text (often marked with a small green triangle) are ignored by COUNT. Convert them by selecting the cells, clicking the warning icon that appears and choosing Convert to Number.
  • Forgetting the quotes. In COUNTIF, text criteria must be wrapped in quotes: =COUNTIF(A1:A20,"Paid"), not =COUNTIF(A1:A20,Paid). Wildcards need quotes too, e.g. "S*".
  • Mismatched ranges in COUNTIFS. Every range in a COUNTIFS formula must be the same size, or Excel returns a #VALUE! error.
  • Placing the formula inside the counted range, which can give confusing results when the range is later expanded.

Tips

  • Excel's status bar at the bottom shows a quick Count of selected cells — just select a range and glance down. Right-click the status bar to add Numerical Count, Average and more.
  • Use whole-column references like =COUNTA(A:A) to count everything in a column, including data added later.
  • Wildcards work in COUNTIF: =COUNTIF(A1:A20, "*smith*") counts any cell containing "smith" anywhere.
  • To count unique values, use =COUNTA(UNIQUE(A1:A20)) in current versions of Excel (Microsoft 365 and Excel 2021 or later).
  • For counts inside a formatted table, use structured references like — they update automatically as rows are added.

Troubleshooting

  • Formula shows instead of the result. The cell is probably formatted as Text. Change it: select the cell, go to Home > Number Format and choose General, then re-enter the formula.
  • #NAME? error. The function name is misspelled — check for typos like COUT or CONTIF. In older Excel versions, UNIQUE does not exist and produces this error.
  • #VALUE! error. In COUNTIFS, check that all ranges are the same size. In COUNTIF, check that criteria are correctly quoted.
  • The count is lower than expected. Look for numbers stored as text, hidden spaces at the end of text values, or blank-looking cells containing spaces (COUNTA counts those). Use TRIM to clean text data.
  • The result doesn't update. Formulas recalculate automatically by default, but if Calculation Options (Formulas tab) was set to Manual, press F9 to recalculate or switch it back to Automatic.

Frequently Asked Questions

What is the difference between COUNT and COUNTA?

COUNT counts only cells containing numbers; COUNTA counts all non-empty cells, including text, dates and logical values.

How do I count cells that contain a specific word?

Use COUNTIF with the word in quotes, e.g. =COUNTIF(A1:A20, "Completed"). For partial matches, use wildcards: =COUNTIF(A1:A20, "*Complet*").

How do I count based on a condition, like values over 100?

Put the comparison operator and number inside quotes: =COUNTIF(B1:B20, ">100"). For two conditions on the same range (between 50 and 100), use COUNTIFS twice on the same range.

Can I count across multiple sheets?

Yes — reference the sheet name in the range, for example =COUNT(Sheet2!A1:A20), or add several COUNT results together with a plus sign.

Does the count update automatically when I add data?

Yes, if the new data falls inside the referenced range. Using whole-column references (A:A) or a formatted table ensures the count grows with your data.