GoalUse cell references in a formula so that the answer updates when a value changes.
New words
cell reference · the name of a cell, made from its column letter and its row number, such as B2column · a line of cells that goes down the sheet; it has a letterrow · a line of cells that goes across the sheet; it has a numberrecalculate · to work out the answers again, which a spreadsheet does automatically
Explanation
Every cell has a name made from its column letter and its row number, such as B2. This name is the cell reference. In a formula we can use a cell reference instead of a number. The spreadsheet then uses the value that is in that cell. For example, =B1*B2 multiplies the values in B1 and B2. When we change a value in B1, the spreadsheet recalculates the formula at once. This is a great advantage of a spreadsheet. We use constants only for numbers that never change, such as the 7 days in a week.
B3fx=B1*B2
A
B
1
Rows
8
2
Seats in a row
12
3
Seats in the hall
96
Worked examples
B3fx=B1*B2
A
B
1
Rows
10
2
Seats in a row
12
3
Seats in the hall
120
The hall gets two more rows. We change only the value in B1. The formula =B1*B2 recalculates, and B3 now shows 10 × 12 = 120.
Formula
B1 changes from 8 to 10
Result
=8*12
the formula stays the same
still 96, which is wrong
=B1*B2
the formula uses the new value
120, which is right
Compare a formula with constants and a formula with cell references.
B2fx=B1/7
A
B
1
Weekly bus pass
42
2
Cost for one day
6
We can mix a cell reference and a constant. The weekly pass costs 42 and a week has 7 days, so one day costs 42 ÷ 7 = 6. If the pass price changes, the answer changes.
Class activity
Paper spreadsheet (pairs). Draw a grid with columns A to C and rows 1 to 3 on paper. Write numbers in B1 and B2 and the formula =B1+B2 in B3 on a sticky note. One player is the ‘spreadsheet’ and works out B3. The other player changes the number in B1 or B2 and asks for the new answer. Do five changes. Then try again, but with the formula =5+7 written as constants. What do you notice?
Practice
1
What is the formula for B3, and what does it show?
A
B
1
Boxes
4
2
Pens in a box
6
3
Total pens
?
=B1*B2. It shows 4 × 6 = 24.
2
The number of boxes changes from 4 to 7. What does B3 show now, if its formula is =B1*B2?
7 × 6 = 42.
3
Why is =B1*B2 better than =4*6 in this sheet?
Because the numbers in B1 and B2 may change. The cell-reference formula uses the new values automatically. The constant formula always gives 24.
4
Write the formula for B3, give its value, and say what B3 shows if B1 becomes 25.