Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=COUNTIF(A2:A5,"<>"&"Pending")Computed by a real spreadsheet engine on the sample data below.
| Status |
| Pending |
| Approved |
| Rejected |
| Approved |
=COUNTIF(A2:A5,"<>"&"Pending")→3
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need it for your exact data?
Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.
No, COUNTIF is case-insensitive, so 'pending', 'Pending', and 'PENDING' are all treated the same.
Yes — use =COUNTA(range)-COUNTIF(range,"Value1")-COUNTIF(range,"Value2") or sum multiple COUNTIF expressions.
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-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: