← Teacher guide

A formula keeps up

Students learn that a spreadsheet cell has a name, that a cell starting with = is a formula that works its answer out from other cells by name, and that it works it out again when those cells change. They write growth formulas for a Year 7 bean-plant sheet and repeat the idea in the spreadsheet app the school uses.

Working with data · Cells and formulas · about 45 minutes · Open the student lesson

Classroom resources

Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Timing

Predict and Try 8 min · Worked example 10 min · Vary 7 min · Practise 8 min · Make and own app 12 min

Before class

Do the Try board yourself: change B2, then click D2 and read the bar above the sheet.

The one idea: a formula uses cells' names, not their numbers, so the answer follows the cells. A number typed in as the answer does not.

The sheet on the page is a small teaching model with only what every spreadsheet shares: names, numbers, text, formulas that start with =, and the operators + - * /. It is not Excel or Sheets, and nothing here depends on either.

The last step asks students to do the same in the app your school uses. It works the same in Excel (desktop or web), Google Sheets and Numbers. Where they differ: Enter moves down in all of them, and Google Sheets or Excel may offer a pop-up of function names as students type; they can ignore it for now.

Years 6–8: the data is a plant-growth table like one in Year 7 science. Use your own class data if you have it, and have students type their own measurements in the last step.

Running the lesson

  1. Predict: students who chose 8 think D2 only shows what it showed before. Ask what 'formula' might mean.
  2. Try: ask why D2 changed when B2 was the cell they typed in.
  3. Worked example: ask which part of =C2-B2 is the = and which part is the names. Say the formula aloud: take B2 from C2.
  4. Practise: students often write =C3-B3 for D4 by copying. Ask which row Bean C is in.
  5. Own app: walk round. The common slip is a missing =, which shows the formula as words.

In class

On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.

The hard part (on purpose)

Typing the answer instead of the formula. A student who types 8 in D2 gets a correct-looking sheet, so nothing tells them it is wrong until a cell changes. Have them change B2 and watch.

When students get stuck

What you will seeA question to askThe fix
A student types the answer into D2 (Sam's mistake).Change B2. What happens to D2? Which cell would know about the change?Delete it and type =C2-B2: use the names so the sheet can follow.
A student writes C2-B2 without the = and sees the words C2-B2.How does the sheet know this is a sum and not a word?Start every formula with =.
A student writes the cell name the wrong way round (2C, 3D).Look at the headings. What comes first, the letter or the number?Column letter first, then row number: D3.
A student's formula shows an error such as #NAME? or #REF!.Read the message under the sheet. What does it say went wrong?Check the names are real cells and the spelling is right.

Answers to the checks

  1. what does D2 show?: D2 holds the formula =C2-B2, so it shows 8. The scientist finds she measured wrong on day 1 and changes B2 from 3 to 5. What does D2 show now?
    6. The formula takes whatever is in C2 and B2 now: 11 - 5 = 6. It works its answer out again every time a cell it uses changes.
  2. Try: change a cell: Change the Day 1 height in B2 to 5. What does the Growth in D2 show now?

    D2 shows 6. The formula =C2-B2 uses the cells' names, not their numbers, so it works out 11 - 5 when B2 changes.
  3. Writing =C2-B2: What does the = at the start of =C2-B2 tell the spreadsheet?
    Work this out from the cells named
    A cell that starts with = is a formula. The spreadsheet works out the answer from the cells named and shows it.
  4. Find the mistake: Sam's growth stopped being right after the day 1 height changed. Click the line where Sam first goes wrong.
    line 3
    Line 3: Sam worked out 8 and typed it. It is only a number, so the sheet cannot know it came from B2 and C2. A formula =C2-B2 would have followed the change.
  5. Cell names: Which cell is in column D, row 3?
    D3
    Column letter first, then row number: D3. The headings at the top and side of the sheet show them.
  6. Change a cell: B2 holds 3, C2 holds 11 and D2 holds =C2-B2. You change C2 to 15. What does D2 show?
    12
    The formula works out 15 - 3 = 12.
  7. A different operation: B2 holds 3 and C2 holds 4. A cell holds =B2*C2 (the * means times). What does it show?
    12
    The * means multiply: 3 × 4 = 12.
  8. Add the heights: You want the cell E2 to show the two heights added together, B2 and C2. Which do you type in E2?
    =B2+C2
    =B2+C2: start with =, then the two names with a + between them.
  9. Which keeps up?: Which of these cells will keep giving the right growth if the Day 1 height changes?
    A cell holding =C2-B2
    Only the formula uses the cells' names, so it works its answer out again when they change.
  10. Bean B and Bean C: Write a formula in D3 for Bean B's growth, and one in D4 for Bean C's growth. Do not type the answers.

    D3 holds =C3-B3, which is 11 - 2 = 9, and D4 holds =C4-B4, which is 10 - 4 = 6. Each formula uses the cells in its own row.
  11. your own sheet: Fill in your own Day 1 and Day 4 heights for the three beans, and write a growth formula in D2, D3 and D4.

    Each growth cell holds a formula that takes its own row's Day 1 height from its Day 4 height. If you change any height, the growth follows.

Solutions

One possible solution for each task. Other correct programs are fine.

your own sheet

Open task: any program that does what the step asks.

Stretch and support

Stretch: Write one formula in E2 that shows how many times taller Bean A is on day 4 than on day 1. Which operator do you need? What if B2 were empty?

Support: A card: A cell's name is its column letter then its row number. Start a formula with =. Use cell names, not the numbers in them.

Exit ticket

B2 holds 4, C2 holds 9 and D2 holds =C2-B2. You change B2 to 6. What does D2 show?

3. The formula works out 9 - 6 again.

What each step is for

Where it leads

Next in Working with data: functions that work on a whole column (SUM and AVERAGE).

Years 6–8: the same sheet can record real measurements from a science investigation. Digital Technologies › Data representation covers how data is stored; this course is about using it.