Copying Formulas: What Travels and What Does Not
About this lesson
Copying a formula copies its meaning, not its text. Relative references move to match the new position. Locked references keep pointing at the same cell.
- say what travels with a copied formula and what stays behind.
- paste a formula somewhere new and get the reference you meant.
The idea
One formula usually has both kinds. Units and rate belong to the row and should move. A standing charge written once belongs to the sheet and should not. Deciding which is which takes a second per reference. It saves the afternoon somebody would spend finding out why one column is slightly wrong.
The habit that causes the most damage is not a missing dollar sign. It is typing a number into a formula instead of pointing at a cell. =B3*C3+20 is correct today and wrong the day the charge changes. Nobody can see it, because the 20 appears in no cell. A number that is a fact about the business, not about one row, belongs in a cell with a label next to it.
The mistake to watch for
Typing a number into a formula instead of pointing at the cell that holds it. It is right today and wrong the day the number changes. Nothing on the sheet shows it, because the typed number appears in no cell. A fact about the business, like a rate, a charge or a limit, belongs in a labelled cell that every formula reads.
Read more about this
Where this comes up again
This lesson needs JavaScript to run. Everything below is the lesson in full, but you cannot type into the grid or be marked.
$B$6 locks both parts, so copying never moves it.
In D2, type:
=B2*C2+$B$6
That is units times rate plus the standing charge.
| Row | A | B | C | D | E | F | G |
|---|---|---|---|---|---|---|---|
| 1 | Site | Units | Rate | Charge | |||
| 2 | Wharf Road | 140 | 0.62 | ||||
| 3 | Bell Green | 96 | 0.62 | ||||
| 4 | Nine Elms | 213 | 0.71 | ||||
| 5 | |||||||
| 6 | Standing charge | 25 | |||||
| 7 | |||||||
| 8 |
Every step
-
$B$6locks both parts, so copying never moves it. InD2, type:=B2*C2+$B$6. That is units times rate plus the standing charge. -
Without $ signs, every reference moves when you copy. Read
=B3*C3+B7and say what it returns. -
In
D4, repeat the charge formula for Nine Elms. The standing charge stays locked. -
D3has 20 typed in place ofB6, which is now 25. FixD3, with the charge locked. -
In
D6, totalD2:D4withSUM. -
Excel treats an empty cell as 0 in maths. Read
=B5*C5+$B$6and say what it returns inD5.