SheetRocks
Documentation/Formulas/COUNTIFS

COUNTIFS

Returns the count of criteria_ranges based on the given criterions.

Syntax

COUNTIFS(count_range, criteria_1, [count_range_n], [criteria_n])

Arguments

Argument Description Required
count_range The range to check against criteria1. Required
criteria_1 The criteria is the formula that has access to the special CELL keyword. The formula will be evaluated for each cell in the range. Required
count_range_n Additional range checked against additional criteria. Optional
criteria_n Additional criteria range that will be evaluated. Optional

Examples

Count cells meeting single criteria

=COUNTIFS(A1:A4, CELL = "Yes")
Result ⇒ 2
A
1 Yes
2 No
3 Yes
4 Maybe

Count cells meeting multiple criteria

=COUNTIFS(A1:A4, CELL >= 80, B1:B4, CELL = "Pass")
Result ⇒ 3
A B
1 85 Pass
2 95 Pass
3 75 Fail
4 90 Pass

Count with numeric criteria

=COUNTIFS(A1:A4, CELL > 10)
Result ⇒ 2
A
1 10
2 20
3 30
4 5

Related Functions

Other Statistical functions:


← Back to Formula Reference