Formula Library

COUNTIF

math

Counts the number of cells that meet a single condition.

Syntax

=COUNTIF(range, criteria)

Example

Excel
=COUNTIF(A:A, "Yes")

Counts how many cells in column A contain the word "Yes".

Tips & Notes

  • →Use wildcards for partial matches: =COUNTIF(A:A,"*apple*")
  • →Count numbers: =COUNTIF(A:A,">100")
  • →Case-insensitive by default

See Also

Need a custom COUNTIF formula?

Describe exactly what you need and get the formula generated instantly.

Generate →

We use cookies and display ads via Google AdSense to keep ExcelBossPro free. Privacy Policy. By continuing, you accept our use of cookies.