Professional Documents
Culture Documents
Excel - SUM and COUNT Functions
Excel - SUM and COUNT Functions
There are several hundred functions within excel but most of us will probably only use 10-15
of them. Listed below are some of the more commonly used ones:-
A B C D E F G
1 First Quarter Exam Scores
2 Student Exam 1 Exam 2 Exam 3 Exam 4 Average Pass/Fail
3 Allan 87 90 79 96
4 Billinger 77 90 65 97
5 Crane 65 95 65 80
6 Davis 85 67 87 72
7 Evans 68 88 88 85
In the above example we want to enter a formula into cell F3 that returns the average exam
mark for each student.
To do this:
You will now have the average exam mark for each student. You can substitute the word
AVERAGE with the following words to alter the formula:
COUNT will return the total number of marks per student (e.g.
one student could have missed an exam)
8. In the Criteria text box, type the appropriate criteria, such as the numerical range,
expression (e.g., >2), or text value e.g. Jones
9. EXAMPLE: If you would like to add the sales values for the salesman called Jones type
Jones
11. Note: These are the cells which will be summed if the criteria has been met. If left blank,
the cells specified in the Range will be added or
12. Click OK - The formula appears in the Formula Bar and the result of the function appears
in the cell you selected.
EXAMPLE
In the following example we want to enter a SUMIF formula in cell E2 which adds up all the
sales in Column B if the name in Column A equals the Value in Column D.
=SUMIF(A:A,D2,B:B)
What the above formula is instructing is to look in the whole of column A (A:A) and if the
name is the same as the value in cell D2 add the appropriate value in Column B. As this
formula is relative when copied down D2 will change to D3 and so on thus adding up the
cells for each individual sales person.
Using COUNTIF
Countif is a similar function to SUMIF except it counts the number of entries that equal a
given criteria. For example, in the example below we may wish to count the number of sales
per salesperson.
In cell H2 we are going to enter a formula that counts the number of sales for each sales
person listed in column G.
This formula can either be typed straight into the cell or you can use the Insert Function
command as follows:-