Count cells that meet a single condition with COUNTIF in Google Sheets

Use the COUNTIF function to automatically count cells that match a given condition — useful for tracking statuses, categories, text values, or numeric criteria.

What the video covers

Show how to write and use a single-criterion COUNTIF formula in Google Sheets to count matching cells in a selected range.

Watch the video on YouTube

Step-by-step instructions

  1. Select the result cell
    Click an empty cell where you want the count to appear.
  2. Start the formula
    Type =COUNTIF( to begin the function.
  3. Choose the range
    Select or type the range of cells you want to evaluate (for example A2:A20).
  4. Enter the condition
    Add a comma, then type the criterion in quotes. For text use "Complete"; for numbers use a comparison like "5" or a plain number like "10".
  5. Close and calculate
    Close the parentheses ) and press Enter. The cell will display the count of matching cells.
  6. Adjust if needed
    Change the range or criterion to update the count. For multiple conditions, use COUNTIFS instead.

Watch the video

Video thumbnail for Count cells that meet a single condition with COUNTIF in Google Sheets Play tutorial

Watch on YouTube

Why it matters

COUNTIF saves time by automatically tallying cells that meet a condition (for example, counting completed tasks, items in a category, or values above/below a threshold) so you don't have to count manually.

Check your result

The formula cell should display a single number equal to the count of cells in your chosen range that match your condition (for example, 5).

Troubleshooting

If the result is unexpected: • Check the range includes the cells you intended. • Put text criteria in quotation marks (e.g., "Complete"). • For numeric comparisons use quotes around the operator and number (e.g., "5"). • Use COUNTIFS if you need multiple conditions. • Ensure there are no leading/trailing spaces in text cells.