AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Formulas and functions

Week 16 · Unit 7: Be a data engineer · 3 lessons
3

SUM and AVERAGE

Computing 5: Unit 7, pp. 86–103
GoalUse the SUM and AVERAGE functions with a range of cells.
New words
function · a formula that is built into the spreadsheet; it has a name and bracketsrange · a block of cells in a line, written with a colon, such as B2:B6argument · the cells that a function works on; it goes inside the bracketsmean · the average value; add all the values, then divide by how many there are
Explanation

A function is a formula that is already built into the spreadsheet. It has a name and brackets, and the cells that it works on go inside the brackets. The SUM function adds all the values in a range. A range is written with a colon, so B2:B6 means B2, B3, B4, B5 and B6. The formula =SUM(B2:B6) is shorter than =B2+B3+B4+B5+B6. The AVERAGE function finds the mean. It adds the values and then divides by how many values there are. A function does not need the symbols + or /.

B7fx=SUM(B2:B6)
AB
1MatchGoals
212
320
433
541
654
7Total10
Worked examples
B7fx=AVERAGE(B2:B6)
AB
1DayMinutes read
2Mon20
3Tue30
4Wed25
5Thu15
6Fri35
7Mean25
The same sheet idea with the AVERAGE function. Reading minutes for five days are in B2:B6. The sum is 20 + 30 + 25 + 15 + 35 = 125, and 125 ÷ 5 = 25.
RangeCells in itHow many
B2:B4B2, B3, B43
C1:C3C1, C2, C33
A5:A9A5, A6, A7, A8, A95
A range names all the cells between two ends. Here are some examples.
StepWork
1 Add the values4 + 7 + 5 + 8 + 6 + 6 = 36
2 Count the values6
3 Divide the sum by the count36 ÷ 6 = 6
Finding the mean by hand has three steps. Six pupils scored 4, 7, 5, 8, 6 and 6.
Class activity

Mean with counters (pairs). Each player takes five paper cups and puts a different number of counters in each cup, from 1 to 8. Write the numbers down and add them to find the sum. Now share all the counters out so that every cup has the same number. How many are in each cup? That is the mean. Check with sum ÷ 5. If the counters do not share equally, say which two whole numbers the mean is between.

Practice
1
Write the function to add the laps in B2:B9, and the function to find their mean.
AB
1WeekLaps
213
325
434
546
652
767
875
984
2
Find the total and the mean of the visitors. Write the formulas for B7 and B8.
AB
1DayVisitors
2Mon14
3Tue9
4Wed12
5Thu16
6Fri9
7Total?
8Mean?
3
Why is =SUM(B2:B50) easier than adding the cells with + signs?
4
Which cells are in the range D3:D7? How many cells is that?