Exercices Excel

The COUNTIF Function

Count cells that meet a specific condition.

📖 Quick reference

The COUNTIF function counts cells in a range that match a criterion. Its syntax is =COUNTIF(range, criteria). For example, =COUNTIF(A1:A6,">100") counts all cells greater than 100.

Count how many cells in A1:A6 have a value greater than 100 and place the result in B1.

Click cell B1, type your formula and press Enter.

B1
A B C D E
Sales Count > 100
1
161
2
136
3
63
4
142
5
182
6
174
7