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
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.
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: