Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=COUNTIF(A2:A6,"Apple")Computed by a real spreadsheet engine on the sample data below.
| Fruit |
| Apple |
| Banana |
| Apple |
| Cherry |
| Banana |
=COUNTIF(A2:A6,"Apple")→2
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.
COUNTIF is always case-insensitive. For case-sensitive counting use =SUMPRODUCT((EXACT(A2:A6,"Apple")*1)) which returns an exact match count.
Use separate COUNTIF calls and add them: =COUNTIF(A2:A6,"Apple")+COUNTIF(A2:A6,"Banana"). For a single criterion with multiple values, COUNTIFS or SUMPRODUCT are better.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: