Lock a cell with $

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*B8 becomes =B3*B9, and B9 is empty. The rate cell slipped away.

Filling down: what moves and what staysColumn C holds a sales tax formula on each row. C2 has =B2*$B$8. Filled down, it becomes =B3*$B$8, =B4*$B$8, =B5*$B$8 and =B6*$B$8. The relative reference moves down a row each time: B2, B3, B4, B5, B6, the price on the same row. The locked reference $B$8 stays on B8, the tax rate of 0.08, in every row.ABC12345678ItemPrice ($)Tax ($)Slow cooker49.99Fan39.99Blender79.99Iron29.99Kettle34.99Tax rate0.08=B2*$B$8=B3*$B$8=B4*$B$8=B5*$B$8=B6*$B$8Fill downB2 moves with the row: B3, B4, B5 …$B$8 stays on B8 in every row

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.

ABC
1ItemPrice ($)Tax ($)
2Slow cooker49.99 (answer cell)
3Fan39.99
4Blender79.99
5Iron29.99
6Kettle34.99
7
8Tax rate0.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($B$2:B2), then fill it down. The range grows by one row on each line, so each cell adds everything above it.

Theme

Filling down: what moves and what stays

Column C holds a sales tax formula on each row. C2 has =B2*$B$8. Filled down, it becomes =B3*$B$8, =B4*$B$8, =B5*$B$8 and =B6*$B$8. The relative reference moves down a row each time: B2, B3, B4, B5, B6, the price on the same row. The locked reference $B$8 stays on B8, the tax rate of 0.08, in every row.