Google Sheets COUNTIF
Use Google Sheets COUNTIF to count rows that match one condition, including statuses, categories, text, dates, and numeric thresholds.
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
=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:
=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:
=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:
=COUNTIF(F2:F200, ">500")If the threshold lives in another cell, join the operator to the reference:
=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:
=COUNTIF(G2:G200, "")That counts blank cells. To count non-blank cells, use:
=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:
=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
Common COUNTIF problems
| Problem | Cause | Fix |
|---|---|---|
| Count is too low | Extra spaces or inconsistent labels | Clean the source values or enforce dropdowns |
| Date count fails | Date is stored as text | Convert imported text to real dates |
| Threshold formula fails | Operator and cell reference are not joined | Use a pattern like ">"&H2 |
| Need two conditions | COUNTIF only supports one condition | Use 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.
Expense Tracker
Log every expense, track receipts, and generate category summaries. Free template for personal or business use.
Open templateFinanceSmall Business Budget
Plan revenue, direct costs, overhead, and EBITDA in one compact operating budget. Keep H1 totals, margin, and owner notes visible without building a giant finance model.
Open templateFinanceBudget Tracker
Track income, expenses, and savings in one place. Line items, budgeted vs actual totals, and monthly net savings — free to use in your browser.
Open templateProject ManagementProject Tracker
Track tasks, owners, priorities, due dates, and blockers in one delivery board. Group work by stream, review progress, and keep next steps visible.
Open template