Absolute references in Excel

A $ pins part of a cell address so it does not move when you copy the formula.

Prices are in B2 to B4 and the 10% tax rate is only in E1. You type C2, then copy it down.

Without $

  • C2=B2*E1$2.00B2 moves with its row (good)E1 has the rate
  • C3=B3*E2$0.00B3 moves with its row (good)E2 moves too (bad: E2 is empty)
  • C4=B4*E3$0.00B4 moves with its row (good)E3 moves too (bad: E3 is empty)

Only the first row is right.

With $

  • C2=B2*$E$1$2.00B2 moves with its row (good)$E$1 stays (good)
  • C3=B3*$E$1$3.00B3 moves with its row (good)$E$1 stays (good)
  • C4=B4*$E$1$4.00B4 moves with its row (good)$E$1 stays (good)

All three rows are right.

Why does Excel do that?

When you copy a formula, Excel copies the pattern, not the exact cells, so every address moves down with the new row.

That is right for the price, because each row has its own, but wrong for the tax rate, because there is only one.

A $ tells Excel: this part is not part of the pattern, keep it.

Practice absolute references
On this page

Why the tax goes wrong

Copy a formula down and every address in it moves down one row. B2 becomes B3, which is right. E1 becomes E2, which is empty, so the tax is $0.00.

Pin the rate with $

Type a $ before the E and a $ before the 1. The rate now stays on E1 in every row.

=B2*$E$1

To copy it down, drag the small square at the bottom-right corner of C2 down to C4.

Pin a letter, a number, or both

A $ pins the letter or the number right after it. Each card shows where the address goes when you copy right or down.

  • $E$1

    $E$1: copied right, it stays on E1; copied down, it stays on E1E1F1E2rightdown

    Letter and number stay.

  • E$1

    E$1: copied right, it moves to F1; copied down, it stays on E1E1F1E2rightdown

    Only the row number stays.

  • $E1

    $E1: copied right, it stays on E1; copied down, it moves to E2E1F1E2rightdown

    Only the column letter stays.

  • E1

    E1: copied right, it moves to F1; copied down, it moves to E2E1F1E2rightdown

    Nothing stays.

the address moves the address stays

Shortcut: select the address and press F4 (Command+T on a Mac).

What to pin

Ask: does every row use this same cell? If yes, pin it, like a tax rate or a grand total. If each row has its own, like the price, leave it alone.

Try it on a price list

A price list has the old prices in column E and one rate in M2. In F2, type this and copy it down.

=E2*(1+$M$2)
Cedar & Main price list excerpt, with 4% in M2
ItemOld price (E)Formula (F)New price
Copy paper letter (case)$48.99=E2*(1+$M$2)$50.95
Legal pads (pack of 12)$16.99=E3*(1+$M$2)$17.67
Sticky notes (24 pads)$20.99=E4*(1+$M$2)$21.83

Change M2 to 8% and the prices become $52.91, $18.35 and $22.67.

Three slips to look for

  • Only the first result is right: click the second one and look for a rate that moved to E2.
  • Every result is the same: the price is pinned too, like $B$2. Change it back to B2.
  • Changing the rate changes nothing: it is typed inside the formula, like 0.1. Use $E$1.

To check, change the rate once and watch every result change.

Names Excel uses

Practice this on a worksheet

Pick the cell that has to stay, add the $, and fill the price list down. Excel Practice checks each answer as you go.

Practice absolute references

Further reading