SheetRocks
Documentation/Formulas/COUNTIF

COUNTIF

Returns the count of cells that meet a specified criteria

Syntax

COUNTIF(range, criteria)

Arguments

Argument Description Required
range The range of cells to count Required
criteria The criteria to count cells by Required

Examples

Count cells greater than or equal to 90

=COUNTIF(A1:A6, CELL >= 90)
Result ⇒ 3
A
1 89
2 93
3 96
4 85
5 91
6 88

Count cells equal to specific text

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

Count cells less than a value

=COUNTIF(A1:A4, CELL < 15)
Result ⇒ 2
A
1 10
2 20
3 30
4 5

Related Functions

Other Statistical functions:


← Back to Formula Reference