Count non-empty cells in Excel using COUNTA

Use Excel's COUNTA function to count cells that contain any value—text, numbers, dates, or formulas—so you can quickly measure filled entries or check data completeness.

What the video covers

Show how to use the COUNTA function in Excel to count all non-empty cells in one or more ranges. This covers writing the formula, counting multiple ranges, and basic alternatives (COUNT, COUNTIF).

Watch the video on YouTube

Step-by-step instructions

  1. Open your workbook and select where you want the result
    Click the cell that should show the count of non-empty cells.
  2. Start the COUNTA formula
    Type =COUNTA( to begin the function.
  3. Specify the range
    Select the range of cells you want counted (for example A1:A100) or type the range reference into the parentheses.
  4. Include additional ranges if needed
    To count multiple ranges, separate each range with a comma inside the parentheses (for example =COUNTA(A1:A100,B1:B50)).
  5. Complete the formula and get the result
    Close the parentheses and press Enter. Excel returns the number of cells in the specified range(s) that contain text, numbers, dates, or formulas.
  6. Copy the formula if required
    Use the fill handle to drag the formula to other cells to count different ranges or rows.

Watch the video

Video thumbnail for Count non-empty cells in Excel using COUNTA Play tutorial

Watch on YouTube

Why it matters

Counting non-empty cells helps you track filled rows, verify data completeness, and prepare reports or analyses quickly without manual inspection.

Check your result

After entering the formula, the selected cell displays the total number of non-empty cells in the specified range(s). For multiple ranges, the result reflects the combined count.

Troubleshooting

If the count is higher than expected, check for cells that contain invisible characters (spaces) or formulas that return empty strings (""), which COUNTA treats as non-empty. If you need to count only numbers, use COUNT. For condition-based counts, use COUNTIF or COUNTIFS.