0% found this document useful (0 votes)
5 views

Count Functions Form 3 Notes

Uploaded by

Devanand Manaram
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Count Functions Form 3 Notes

Uploaded by

Devanand Manaram
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Information Technology

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

The COUNT function


The COUNT function counts the number of cells in a spreadsheet that contain ONLY numbers. For example, you
can enter the formula =COUNT(A1:A20) to count the numbers in the range A1:A20 and if five of the cells in the
range contain numbers, the result would be 5.

The general formula for the Count Function is:


=COUNT(First Cell in range: Last Cell in range)

The COUNTA function


The COUNTA function counts the number of cells in a spreadsheet that contain any type of information such as
text, numbers and error values. It does not count empty cells. For example, you can enter the formula
=COUNTA(A1:A20) to count the number of items in the range A1:A20. If five of the cells in the range contain
numbers, seven of the cells contain text and eight of the cells are empty the result would be 12.

The general formula for the Count Function is:


=COUNTA(First Cell in range: Last Cell in range)

The COUNTIF function


The COUNTIF function can be used when you want to count the number of cells in a spreadsheet that meet
specified criteria.

The general formula for the Count Function is:


=COUNTIF(range, criteria)
 range – Defines one or several cells to count. You put the range in a formula like you usually do in Excel,
e.g. A1:A20.
 criteria – Defines the condition that tells the function of which cells to count. It can be a number, text
string, cell reference or expression. For instance, you can use the criteria like these: “10”, A2, “>=10”,
“some text”.

=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

You might also like