Skip to main content
Version: Streamsheets 3.0

COUNTIFS

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

Syntax

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

Arguments

NameTypeDescription
CriterionRange1RangeThe range of cells to count.
Criterion1StringThe criterion each cell of CriterionRange1 has to fulfill.
CriterionRange2,... (optional)RangeAdditional cell-range which is checked against next criterion.
Criterion2,... (optional)StringAdditional criterion each cell of CriterionRange2 has to fulfill.

Return

TypeDescription
NumberThe number of cells which meet all specified criteria.

Examples

ABCD
1230000Freiburg3No
2197000Cologne2Yes
3345678Cologne4Yes
4Freiburg3219002Yes
5Cologne2030003No
FormulaResultComment
=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.