COUNTIF Generator - Count Cells by Criteria | Excel & Sheets
Counts the number of cells within a range that meet the given condition.
Common Errors & Fixes
COUNTIF returns 0 or wrong count
Causes:- Criteria not in quotes for text (e.g. "Yes" not Yes).
- Data type mismatch: numbers stored as text or vice versa.
- Extra spaces in cells; criteria does not match exactly.
Fixes:- Wrap text criteria in double quotes: "Completed", ">100".
- Use TRIM on data or match the stored format.
- For numbers, use "=100" or ">50" as the criteria string.
Want to become an Excel Pro?
Stop searching for formulas. Master Excel in 30 days with this top-rated course.
Learn More