Skip to content
Blog/Google Sheets
Google Sheets

Google Sheets COUNTIF

Use Google Sheets COUNTIF to count rows that match one condition, including statuses, categories, text, dates, and numeric thresholds.

/5 min read

Google Sheets COUNTIF counts cells that meet one condition. Use it when a sheet needs a quick count by status, category, owner, date, text value, or numeric threshold.

It is simple, but it shows up constantly in operating spreadsheets because counts are often the first summary people need before building pivots or dashboards.

The syntax

fx
=COUNTIF(range, criterion)
  • range - the cells to evaluate
  • criterion - the condition each cell must meet

The criterion can be text, a number, a comparison, or a reference to another cell.

Count exact text matches

Say a project tracker uses column D for status. To count rows marked Blocked, use:

fx
=COUNTIF(D2:D200, "Blocked")

This returns the number of blocked tasks in the range. The same pattern works for expense categories, campaign channels, lead stages, or approval states.

For example, a project tracker can count blocked work, while an expense tracker can count transactions in a specific category.

Count values above or below a threshold

Use comparison operators inside quotes:

fx
=COUNTIF(E2:E200, ">1000")

That counts cells in E2:E200 greater than 1000.

For a budget review, you might count expenses above a review threshold:

fx
=COUNTIF(F2:F200, ">500")

If the threshold lives in another cell, join the operator to the reference:

fx
=COUNTIF(F2:F200, ">"&H2)

That makes the formula easier to reuse because the threshold can change without editing the formula.

Count blanks and non-blanks

COUNTIF can also check whether fields are filled in:

fx
=COUNTIF(G2:G200, "")

That counts blank cells. To count non-blank cells, use:

fx
=COUNTIF(G2:G200, "<>")

This is useful when a shared tracker needs to count missing owners, blank due dates, or tasks without next steps.

Count partial text matches

Use wildcards when the cell may contain extra text:

fx
=COUNTIF(B2:B200, "*invoice*")

That counts cells containing the word invoice anywhere in the text. Wildcards are helpful for notes, descriptions, or imported labels, but they are not a replacement for clean categories.

WATCH OUT

If the category field matters for reporting, use a dropdown list instead of relying on partial text matches.

Common COUNTIF problems

ProblemCauseFix
Count is too lowExtra spaces or inconsistent labelsClean the source values or enforce dropdowns
Date count failsDate is stored as textConvert imported text to real dates
Threshold formula failsOperator and cell reference are not joinedUse a pattern like ">"&H2
Need two conditionsCOUNTIF only supports one conditionUse COUNTIFS instead

The Griddy way

COUNTIF is easy to write once, but annoying to repeat across every status, category, owner, and threshold summary in a live sheet.

"Add a summary block that counts tasks by status and flags missing owners in this Google Sheets tracker"

Griddy can inspect the actual columns, write the COUNTIF formulas, and place the summary where the team can review it.

Skip the manual work

Describe it. Griddy does it.

Instead of writing this formula yourself, just tell Griddy what you need in plain English. Works in Excel and Google Sheets.

Use this on real templates

Count the rows that drive spreadsheet review

COUNTIF is most useful when templates need quick counts by status, category, owner, missing field, or review threshold.

Finance