Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=COUNTIF(A2:A4,"Active")Computed by a real spreadsheet engine on the sample data below.
| Status | Region |
| Active | North |
| Inactive | South |
| Active | North |
=COUNTIF(A2:A4,"Active")→2
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
Yes — use the <> operator: =COUNTIF(A2:A100,"<>Active") counts all cells that are not 'Active'.
Use =SUMPRODUCT(1/COUNTIF(A2:A100,A2:A100)) — for each value, COUNTIF returns how many times it appears, 1/n gives the fractional weight, and SUMPRODUCT sums to the unique count.
Count the cells in a range that meet a condition.
How-toUse COUNTIF with the <> operator to count all cells that do not match a specific value.
Error fixCOUNTIF not working in Excel and Google Sheets — fix criteria syntax, data-type mismatches, wildcard errors, and case-sensitivity misunderstandings.
ReferenceCount cells that meet several conditions simultaneously.
How-toCount cells that contain, start with, or end with specific text using COUNTIF with * and ? wildcard characters.
Error fixCOUNTIF returns the wrong count in Excel and Google Sheets — fix wildcard over-matching, duplicate rows, hidden rows, blank cell handling, and date format issues.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: