Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
COUNTIF 'not working' usually means it returns 0 when matches are expected, returns a wrong count, or shows a #VALUE! error. The formula itself is rarely broken — the problem is almost always a mismatch between how data is stored and how the criteria is written.
=COUNTIF(A2:A100,>0)=COUNTIF(A2:A100,">0")The comparison operator must be inside a quoted string. Without quotes, the formula either errors or compares incorrectly depending on the spreadsheet version.
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Stop hunting errors by hand.
Upload your spreadsheet and the Auditor flags every COUNTIF and broken formula at once — or paste this one formula and get the fix explained.
Yes. Use =COUNTIF(A:A,"") to count truly empty cells. Note that cells with a formula that returns "" are counted as blank by COUNTIF.
Use a wildcard: =COUNTIF(A:A,"*budget*") counts any cell in column A that contains the word 'budget' anywhere in the string.
COUNTIF only supports one condition. Switch to COUNTIFS which accepts multiple criteria_range/criteria pairs, all evaluated with AND logic.
Count the cells in a range that meet a condition.
How-toLearn the difference between COUNTIF (single condition) and COUNTIFS (multiple conditions) for counting in Excel and Google Sheets.
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.
ReferenceCount cells that meet several conditions simultaneously.
How-toUse COUNTIF with the <> operator to count all cells that do not match a specific value.
How-toCount cells that contain, start with, or end with specific text using COUNTIF with * and ? wildcard characters.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: