Skip to content

COUNTIF

StatisticalExcel 2007

Count the cells that meet one condition.

Syntax

COUNTIF(range, criteria)

Examples

=COUNTIF(A2:A100, "North")

=COUNTIF(B2:B100, ">="&E1)

=COUNTIF(A:A, A2)>1

flag duplicates

Related functions

More Statistical functions

← All 510 functions

Syntax follows Microsoft’s documentation. Examples are written to be pasted into a cell and checked. Argument separators may be ; in your locale. The AI explainer runs on a free community model — verify anything important.