Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=COUNTIF(A2:A5,"*apple*")Computed by a real spreadsheet engine on the sample data below.
| Product |
| Green Apple |
| Banana |
| Pineapple |
| Apple Juice |
=COUNTIF(A2:A5,"*apple*")→3
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.
Prefix it with a tilde: "~*" matches a real asterisk character rather than acting as a wildcard.
Yes, COUNTIFS supports the same * and ? wildcards in any of its criteria arguments.
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 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-toUse COUNTIF with the <> operator to count all cells that do not match a specific value.
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: