When you built your project budget in an earlier spreadsheet lesson, every total came from a formula. Today you'll learn what happens when you try to reuse a formula all the way down a column, and why some formulas silently break and give you wrong numbers. The fix is one small symbol: {{code:$}}.
You type {{formula:=B2*5}} in cell D2 and then drag it down to D10. What do you think happens to the B2 reference on the way down, does it stay as B2 on every row, or does it change? Hold that guess in your head; you'll see the answer in the step-by-step.
Four ideas you'll use in the step-by-step:
| Concept | Why it matters | Example |
|---|---|---|
| Relative reference (A1) — a cell reference that shifts when the formula is copied to another row or column | This is the default behaviour and it's what lets you write one formula for row 2 and fill it all the way down without retyping | {{formula:=B2*C2}} in D2, filled to D3, automatically becomes {{formula:=B3*C3}} |
| Absolute reference ($A$1) — a cell reference locked with dollar signs so it doesn't shift when the formula is filled | When every row needs to reference the same fixed cell (a grand total, a tax rate, a target number), the reference must be absolute or the formula breaks on fill | {{formula:=B2/$B$7}} in C2, filled down to C6, still divides by B7 on every row, so each row correctly shows its share of the total |
| Autofill — drag the small square at the bottom-right corner of a selected cell to copy its formula, or to extend a pattern | Saves typing the same formula five or fifty times, and lets the spreadsheet continue a pattern you've started | Type {{code:Monday}} and drag down four rows, the sheet fills Tuesday, Wednesday, Thursday, Friday automatically |
| #DIV/0! error — appears in a cell whose formula tries to divide by zero or by an empty cell | This is the most common signal that a relative reference has drifted off the bottom of your data during autofill and should have been absolute | {{formula:=B3/B8}} when B8 is empty returns {{code:#DIV/0!}}, a textbook symptom of a missing {{code:$}} |
You'll build a small sample budget, break a formula with autofill on purpose, and then fix it with {{code:$}}. After that you'll practise formatting as percentages and try autofill on non-formula patterns. Finally, you'll apply the same fix to your real {{code:05_project_budget}} in the independent practice.
| Issue | Solution |
|---|---|
| {{code:#DIV/0!}} error appears when I fill down | Your formula is dividing by a cell that becomes empty as autofill shifts references. Click one of the broken cells, read the formula bar, and lock the 'divide by' cell with {{code:$}}, e.g. change {{formula:=B2/B7}} to {{formula:=B2/$B$7}} |
| Autofill shows the same number on every row | You put {{code:$}} on both references by mistake. Only lock the cell that should stay fixed (the grand total). Leave the one that should shift per row (the row's own value) without any {{code:$}}, e.g. {{formula:=B2/$B$7}}, not {{formula:=$B$2/$B$7}} |
| I can't find the autofill fill handle | Make sure you've clicked a single cell, not a range. The small square appears at the bottom-right corner of the blue border. On a Chromebook, make sure you're using the trackpad rather than tapping, tap-and-drag can miss the handle |
| Values show as decimals (0.12) instead of percentages (12%) | Select the whole column and click the {{btn:%}} (Percent) button in the toolbar, or use {{kbd:Ctrl+Shift+5}} (Windows/Chromebook) / {{kbd:Cmd+Shift+5}} (Mac) |
| F4 isn't adding dollar signs on my Mac | Many Macs reserve F-keys for brightness/volume. Try {{kbd:Fn+F4}}, or just type the dollar signs by hand, they're just ordinary keyboard characters |