Statistical Modern

COUNTIFS

Counts the cells that meet multiple conditions.

Available in All versions (Excel 2007+)

Syntax

COUNTIFS(criteria_range1, criteria1, ...)

What it returns

The number of cells matching all criteria.

Arguments

ArgumentRequiredDescription
criteria_range1 Yes The first range to test.
criteria1 Yes The condition applied to criteria_range1.
No Add criteria_range/criteria pairs as needed (up to 127).

Example

Criteria
City = "Paris" AND Amount > 100
AB
1CityAmount
2Paris120
3Lyon200
4Paris200
5Paris90
Count
2

Count rows meeting every criterion: Paris and over 100 (2).

=COUNTIFS(A2:A100, "Paris", B2:B100, ">100")

Important to know

All ranges must be the same size.

Conditions are combined with AND (all must match).

Related functions

Related learning