Fill and fixed references · About 5 minutes
Lock just the row or column
When a formula fills across a table, down and to the right, you often want to lock only half a reference. $A2 locks the column: it always uses column A, but the row still moves. B$1 locks the row: it always uses row 1, but the column still moves.
In a price table with prices down column A and rates across row 1, =$A2 reads as "this row's price times this column's rate". One formula fills the whole table.
Press F4 (Cmd+T on a Mac) more than once to step through the choices: A1, then $A$1, then A$1, then $A1. The $ sits in front of whatever stays fixed.
Exercise 1 of 3 · Worked example
Row 1 holds sales tax rates of 5%, 6% and 8%. In B2, type =$A2 *B$1. It will be filled across and down to D6.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Price ($) | 0.05 | 0.06 | 0.08 |
| 2 | 20 | (answer cell) | ||
| 3 | 45 | |||
| 4 | 80 | |||
| 5 | 120 | |||
| 6 | 250 |
Questions people ask
What is a mixed reference in Excel?
A reference with one $, so only half of it is fixed. $A1 keeps column A and lets the row change. A$1 keeps row 1 and lets the column change.
When should I use a mixed reference instead of $A$1?
When one formula fills both down and across, like a price-by-rate table. Each input needs only its row or its column fixed.
How do I make a multiplication table with one formula?
With numbers down column A and across row 1, type =$A2 in B2, then fill it across and down.
What order does F4 go through?
Each press moves to the next type: A1, $A$1, A$1, $A1, then back to A1.