Counting items in Excel means determining how many cells contain data, numbers, or meet specific criteria. This helps track inventory, analyze survey responses, or summarize datasets. You don’t need anything extra—just Excel installed and a workbook with data. Below are practical methods using built-in functions and tools.

What You'll Need

  • Microsoft Excel (any modern version: 2010, 2013, 2016, 2019, 2021, Microsoft 365)
  • A worksheet with data to count
  • Basic familiarity with entering formulas (optional but helpful)

Step-by-Step

  1. Open your Excel workbook and ensure your data is in a clean, structured table or contiguous range. Avoid blank rows or columns within your dataset unless intentional. If your data spans multiple sheets, you’ll need to count on each sheet separately.
  2. Decide what you’re counting:
    • Count all non-empty cells (text, numbers, errors, logical values)
    • Count only numeric cells
    • Count cells meeting one or more conditions (e.g., values > 100, or text containing “Shipped”)
    This choice determines which function to use. Using the wrong one is a common source of errors.
  3. Use COUNTA for total non-empty cells: In a blank cell, type =COUNTA(A2:A100) (replace A2:A100 with your actual range). Press Enter. This counts every cell with any content—including spaces (see troubleshooting). For example, if cells A2 through A100 contain product names, and A50 is blank, COUNTA returns 98 (assuming 99 cells in the range). If A75 contains a single space, it counts as 1.
  4. Use COUNT for numeric-only cells: Type =COUNT(B2:B50) in another cell. This ignores text, blanks, and errors, returning only the number of cells with numbers. For instance, if B2:B50 includes 12 numbers, 5 text entries like “N/A”, and 3 blanks, COUNT returns 12.
  5. Use COUNTIF for single-condition counting: To count cells equal to a value, type =COUNTIF(C2:C200,"Complete"). For greater-than conditions, use quotes with the operator: =COUNTIF(D2:D100,">100"). Note: The condition must be text inside quotes, even for numbers. Wildcards work: =COUNTIF(E2:E200,"*Sprint*") counts cells containing “Sprint” anywhere in the text.
  6. Use COUNTIFS for multiple conditions: To count rows where Column A = "Order" AND Column B > 50, type =COUNTIFS(A2:A50,"Order",B2:B50,">50"). Each condition pair (range, criteria) must be added sequentially. All conditions must be true for a row to be counted. For OR logic across columns, you’ll need to combine functions like SUM and IF (see Advanced Techniques).
  7. Count unique values (Excel 365/2021+ only): Use =UNIQUE(A2:A100) to extract distinct entries into a spill range, then wrap in ROWS: =ROWS(UNIQUE(A2:A100)). This returns the number of distinct items. In older Excel versions, use the array formula =SUM(N(FREQUENCY(MATCH(A2:A100,A2:A100,0),ROW(A2:A100)-ROW(A2)+1)>0)) (press Ctrl+Shift+Enter).
  8. Use the Status Bar for quick counts: Highlight a range (e.g., select A2:A100), then look at the bottom-right Status Bar. Right-click the Status Bar and ensure “Count” is checked. It shows the count of numeric cells. For non-empty cells, you need a workaround—see Tips.
  9. Convert to a Table for dynamic counting: Select any cell in your data, press Ctrl+T, and check “My table has headers.” Then use structured references: =COUNTA(Table1[Status]). As you add rows, the count updates automatically.

Common Mistakes

  • Using COUNT instead of COUNTA: This omits text entries, giving a lower count than expected. For example, counting product names with COUNT returns 0 because names are text—not numbers.
  • Ignoring hidden rows: COUNT and COUNTA count hidden rows too. If you’ve filtered data, use SUBTOTAL instead: =SUBTOTAL(103,A2:A100) (103 = COUNTA ignoring hidden rows).
  • Quoting errors in criteria: Typing =COUNTIF(A2:A10,>100) causes a #NAME? error. Always wrap criteria in quotes: ">100".
  • Spaces as data: A cell with a space (typed or pasted) is non-empty and counts in COUNTA. Use TRIM or =LEN(A2)=0 to detect these. Example fix: =COUNTIF(A2:A100,"?*") counts cells with at least one non-space character.
  • Range mismatch in COUNTIFS: All ranges must be the same size. =COUNTIFS(A2:A10,B2:B11) returns #VALUE! because A2:A10 is 9 rows and B2:B11 is 10 rows.

Tips

  • Use cell references in criteria: Instead of hardcoding values, reference a cell: =COUNTIF(D2:D100,">"&F1) lets you change F1 (e.g., to 75) and update the count instantly.
  • Combine COUNT with IF for complex logic: To count numbers >100 and <500, use =SUMPRODUCT((D2:D100>100)*(D2:D100<500)). This avoids nested COUNTIFS and works in older Excel versions.
  • Check for errors first: Wrap formulas in IFERROR to avoid disruption: =IFERROR(COUNTIFS(A2:A100,"Order",B2:B100,">50"),0) returns 0 if the formula fails.
  • Use conditional formatting to verify: Highlight cells matching your criteria (e.g., Format Cells > Use a formula > =AND($A2="Order", $B2>50)) to visually confirm what will be counted before running the formula.
  • Count visible cells only after filtering: Use =SUBTOTAL(102,B2:B100) for numeric count or =SUBTOTAL(103,B2:B100) for non-empty count. These ignore hidden rows.

Advanced Techniques

For more complex counting needs, combine functions with flexibility:

  • Count unique text ignoring blanks: In Excel 365, use =ROWS(FILTER(UNIQUE(A2:A100),A2:A100<>