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

Spreadsheets at work

Week 18 · Unit 7: Be a data engineer · 3 lessons
2

Copy formulas down

Computing 5: Unit 7, pp. 86–103
GoalCopy a formula to many cells with the fill handle and say which cells change when one value changes.
New words
fill handle · the small square at the corner of a selected cell; dragging it copies the formula to nearby cellscopy · to make another one just like itaffected cell · a cell whose answer changes because a value that it uses has changedautomatic · happening by itself, without us doing it
Explanation

A table often needs the same formula in every row. Instead of typing it again and again, write it once. Select the cell and drag the fill handle down. The spreadsheet copies the formula and changes the row numbers to match each row. So =B2*C2 in row 2 becomes =B3*C3 in row 3. When one value changes, every formula that uses it recalculates automatically. We can predict which cells are affected by looking at the formulas that use the changed value.

D2fx=B2*C2
ABCD
1VegetableKilosPrice per kiloIncome
2carrots12224
3beans9327
4tomatoes18472
5Total123
Worked examples
CellFormulaShows
D2=B2*C224
D3=B3*C327
D4=B4*C472
D5=SUM(D2:D4)123
In D2 the formula is =B2*C2. We drag the fill handle from D2 down to D4. The copied formulas are shown here. Each uses its own row.
CellBeforeAfterChanged?
D22424no
D32727no
D4 =B4*C47296yes
D5 =SUM(D2:D4)123147yes
The tomato harvest changes from 18 to 24 kilos. Only the cells that use B4 are affected. The others stay the same.
B5fx=AVERAGE(B2:B4)
AB
1VegetableKilos
2carrots12
3beans9
4tomatoes24
5Mean15
The mean of the kilos also changes, because it uses B4. Before: (12 + 9 + 18) ÷ 3 = 13. After: (12 + 9 + 24) ÷ 3 = 15.
Class activity

Fill by hand (pairs). Draw a table of three columns and five rows on paper. Write numbers in columns A and B for four rows. Write a formula card ‘=A2+B2’ for row 2 only. Now be the fill handle: write the copied formula for each other row on a sticky note and put it in column C. Next, change one number in column A and track which sticky notes must be worked out again. How many cells are affected? Which are not?

Practice
1
Write the formula for D2 and say what D3 will be after the fill handle is used.
ABCD
1TeamChainsLinks in a chainTotal links
2Red512?
3Blue710?
4Green611?
5All teams?
2
The Blue team’s chains change from 7 to 9. Which cells are affected? What do they show now?
3
Explain what the fill handle does and why it helps.
4
Blue’s total looks wrong. What is wrong with its formula, and how can it be fixed?
D3fx=B2*C2
ABCD
1TeamChainsLinks in a chainTotal links
2Red51260
3Blue71060