
Official documentation checked November 14, 2026. This is a documentation-based guide, not a hands-on product review. Menus and availability can vary.
COUNTIF answers a simple question: how many cells in this range match one condition? It is useful for counting a status label or values above a threshold without manually filtering the sheet.
The basic pattern
=COUNTIF(range, criterion)
The range is the set of cells to check. The criterion is the condition. Text criteria and comparison expressions belong in quotation marks.
Example 1: count paid invoices
If B2:B6 contains Paid, Pending, Paid, Overdue and Paid, use:
=COUNTIF(B2:B6,"Paid")
The expected result for that sample is 3. This counts status cells, not money. It does not add invoice amounts, verify bank receipts or prove the invoice was actually paid.
Example 2: count large amounts
If C2:C6 contains numeric amounts, use:
=COUNTIF(C2:C6,">1000")
This counts cells whose numeric values are greater than 1000. It does not include 1000 itself. Use ">=1000" when the threshold should be inclusive.
Two details that change results
Google documents that COUNTIF is not case sensitive. "Paid" and "paid" therefore do not form separate case-sensitive categories. It also supports wildcards: an asterisk matches zero or more contiguous characters, while a question mark matches one character. Prefix a wildcard with a tilde to match the literal symbol instead.
Use an exact label such as "Paid" when that is what you mean. A broad condition such as "*Paid*" can match more text than you intended. Review the underlying labels instead of trusting a surprisingly high total.
When COUNTIF is not enough
COUNTIF handles one criterion. For multiple conditions, Google points to COUNTIFS and related functions. Counting invoices that are both Paid and assigned to a particular client is a different question from counting Paid cells alone.
Build the formula against a tiny sample with an answer you can count yourself. Then extend the range to real data and check that headers, blanks and inconsistent labels are not distorting the result.
Official source
Read the official Google help page. Checked November 14, 2026. Practical examples and checklists above are Sceptra's suggested applications of that documentation.
Comments
Post a Comment