Fill and fixed references · About 5 minutes
Lock a cell with $
Sometimes every row needs the same cell, like one tax rate. Filled down, =B2 becomes =B3, and B9 is empty. The rate cell slipped away.
A $ stops that. $B$8 means "always B8": the $ before B locks the column and the $ before 8 locks the row. This is an absolute reference.
You don't have to type the $ signs. Click on the reference in your formula and press F4 (in Excel for Mac, Cmd+T). =B2 reads as "this row's price times the rate in B8".
Filling down: what moves and what stays
Exercise 1 of 3 · Worked example
In C2, work out the sales tax on the Slow cooker using the rate in B8. Type =B2 *$B$8. It will be filled down to C6.
| A | B | C | |
|---|---|---|---|
| 1 | Item | Price ($) | Tax ($) |
| 2 | Slow cooker | 49.99 | (answer cell) |
| 3 | Fan | 39.99 | |
| 4 | Blender | 79.99 | |
| 5 | Iron | 29.99 | |
| 6 | Kettle | 34.99 | |
| 7 | |||
| 8 | Tax rate | 0.08 |
Questions people ask
How do I keep a cell constant in an Excel formula?
Put $ before the column letter and the row number, like $B$8. When you fill the formula down or across, it keeps pointing at B8.
What does the $ sign mean in an Excel formula?
$ fixes the part right after it. $B$8 fixes both, $B8 fixes only the column and B$8 fixes only the row.
What is the shortcut for an absolute reference on a Mac?
In Excel for Mac, press Cmd+T while the cursor is in the reference. On Windows it's F4.
Does Google Sheets use $ the same way?
Yes. The $ rules are the same, and F4 switches between the reference types there too.
What is the difference between absolute and relative references?
A relative reference like B2 shifts when you copy the formula. An absolute reference like $B$2 always points at the same cell.
How do I make a running total?
Lock only the start of the range: =SUM(, then fill it down. The range grows by one row on each line, so each cell adds everything above it.