Skip to main content

COUNTIFS

Returns the number of cells from several cell-ranges which meet all corresponding criteria.

Syntax

=COUNTIFS(CriterionRange1, Criterion1, [CriterionRange2, Criterion2], ...)

Arguments

NameDescription
CriterionRange1The range of cells to count.
Criterion1The criterion each cell of CriterionRange1 has to fulfill.
CriterionRange2,...Optional. Additional cell-range which is checked against next criterion.
Criterion2,...Optional. Additional criterion each cell of CriterionRange2 has to fulfill.

Return Value

The number of cells which meet all specified criteria.

Example

ABCD
1230000Freiburg3No
2197000Cologne2Yes
3345678Cologne4Yes
4321900Freiburg2Yes
5203000Cologne3No
FunctionResultComment
COUNTIFS(C1:C4, ">=3")3Counts all houses which have three or more rooms.
COUNTIFS(B1:B5, "Cologne", D1:D5, "=Yes")2Counts all houses in Cologne which have a garage.