GoalWrite formulas with cell references and use the SUM and AVERAGE functions.
New words
formula · a calculation that starts with = and works out an answer in a cellcell reference · the name of a cell, such as C3, used inside a formulafunction · a ready-made tool in a spreadsheet, such as SUM or AVERAGErecalculate · to work out the answers again when the data change
Explanation
A formula starts with an equals sign. Inside it we use cell references instead of typing the numbers. For example, =B2*C2 multiplies the numbers in B2 and C2. Because the formula uses references, the sheet recalculates the answer when a number changes. A function does a bigger job for us. SUM adds a range of cells, so =SUM(C2:C4) adds C2, C3 and C4. AVERAGE finds the mean of a range. When you copy a formula down a column, the references move down too, so the formula in row 3 is =B3*C3.
D2fx=B2*C2
A
B
C
D
1
Item
Price
Sold
Money
2
rolls
1
40
40
3
loaves
3
25
75
4
cakes
4
10
40
5
Total
75
155
6
Average sold
25
Worked examples
Cell
Formula
Shows
D2
=B2*C2
40
D3
=B3*C3
75
D4
=B4*C4
40
D5
=SUM(D2:D4)
155
C6
=AVERAGE(C2:C4)
25
The Money column uses the same formula in every row. Only the row number changes.
Cell
Before
After
D2 money for rolls
40
55
C5 total sold
75
90
D5 total money
155
170
C6 average sold
25
30
The bakery sold 55 rolls instead of 40. Only cell C2 was changed. Every formula that uses it recalculates by itself.
Check the average by hand: 55 + 25 + 10 = 90, and 90 ÷ 3 = 30. The sheet gives the same answer.
Class activity
Human spreadsheet (no computer): write the numbers 4, 7 and 9 on three cards and give them to three people sitting in a row. A fourth person is the formula and holds a card that says =SUM. The formula person adds up the numbers and shouts the total, which is 20. Change one of the numbers, such as 9 to 13. The formula person recalculates. What is the new total? Now play ‘AVERAGE’: for 4, 7 and 13, what is the answer? If you have a computer or tablet, build the same row in a spreadsheet and watch the total change.
Practice
1
What do cells D2, D3 and D4 show?
D2fx=B2+C2
A
B
C
D
1
Day
Morning
Afternoon
Total
2
Mon
12
9
?
3
Tue
8
15
?
4
Wed
20
6
?
D2 shows 21, D3 shows 23 and D4 shows 26. Each formula adds the cells in its own row.
2
Write the function that finds the average of the numbers in cells C2 to C4.
=AVERAGE(C2:C4)
3
Cell D2 holds =B2*C2. B2 is 3 and C2 is 6. What does D2 show? Then B2 is changed to 5. What does D2 show now?
First 3 × 6 = 18. After the change 5 × 6 = 30. The sheet recalculates by itself.
4
Why is it better to write =B2*C2 in cell D2 than to type the answer 18?
If B2 or C2 changes, the formula gives the new answer automatically. A typed 18 would stay the same and become wrong.