Use COUNTIF in Excel to Count Cells That Meet a Condition

Quickly count how many cells in a range meet a single condition (for example, "Completed") using Excel's COUNTIF function.

What the video covers

Shows how to write a basic COUNTIF formula to count cells that meet one condition in a single range.

Watch the video on YouTube

Step-by-step instructions

  1. Select the result cell
    Click the cell where you want the count to appear.
  2. Start the COUNTIF formula
    Type =COUNTIF( to begin the formula.
  3. Enter the range
    Select or type the range of cells to evaluate (for example, A2:A100).
  4. Specify the condition
    Type a comma, then the criterion in quotes for text (for example, "Completed"). For exact numbers, enter the number without quotes; for comparisons use quotes (for example, "=10").
  5. Close and confirm
    Type ) to close the formula and press Enter. Excel returns the count of cells that meet the condition.
  6. Optional: copy the formula
    Fill or copy the cell to apply the same COUNTIF pattern to other columns or ranges, adjusting the range or criterion as needed.

Watch the video

Video thumbnail for Use COUNTIF in Excel to Count Cells That Meet a Condition Play tutorial

Watch on YouTube

Why it matters

COUNTIF saves time and avoids manual counting when you need totals for status, categories, attendance, or any single-condition tally.

Check your result

The formula returns an integer equal to the number of cells in the selected range that match your condition (e.g., 5).

Troubleshooting

If the result is 0 or unexpected: • Verify the range includes the cells you intended. • Ensure the condition matches the cell text exactly (watch for extra spaces or different capitalization if comparing exact text). • For numbers, don't put the condition in quotes; for operators with numbers (e.g., "=10"), put the operator and number in quotes. • If counting partial text, use wildcards like "*part*" in the criterion.