Count Functions Form 3 Notes
Count Functions Form 3 Notes
Form 3
The Count Functions
The count functions are used to count different items of data stored in a Spreadsheet. The three types of count
function we will look at is are as follows:
1. The Count Function
2. The CountA Function
3. The CountIF Finction
=COUNTIF(B2:B9,4)
For example, you can enter the formula =COUNTIF(B2:B9,4) to count the number of students in the range B2:B9
who got a GPA of 4. If three of those students have a GPA of 4 the result would be 3.
Example 2: Imagine that you want to find the number of students who got GPA of more than 3, then the formula
would be:
=COUNTIF(B2:B9, “>3”)
Example 3: If you want to find those students whose name contains Roy, then use this formula
=COUNTIF(A2:A9, “*Roy”). We use * before Roy which means find those values who have Roy at the end. By
giving * means whatever exists before Roy it will count that.
Example 4: Supposing you have the same data as above and you want to count the number of cells that contain the
text „Roni Roy‟, then use this formula =COUNTIF(A2:A9,”*Roni Roy*”) into the Cell.You‟ll get the answer as
1