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

Forms and spreadsheets

Week 4 · Unit 2: Be a data manager · 3 lessons
3

Formulas and functions

Computing 6: Unit 2, pp. 22–39
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
ABCD
1ItemPriceSoldMoney
2rolls14040
3loaves32575
4cakes41040
5Total75155
6Average sold25
Worked examples
CellFormulaShows
D2=B2*C240
D3=B3*C375
D4=B4*C440
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.
CellBeforeAfter
D2 money for rolls4055
C5 total sold7590
D5 total money155170
C6 average sold2530
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
ABCD
1DayMorningAfternoonTotal
2Mon129?
3Tue815?
4Wed206?
2
Write the function that finds the average of the numbers in cells C2 to 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?
4
Why is it better to write =B2*C2 in cell D2 than to type the answer 18?