FxFormula Drills

Absolute vs relative references

A relative reference such as A3 changes row and column when you copy the formula. An absolute reference such as $A$2 does not. Mixed references lock one part: A$2 keeps the row, $A2 keeps the column. Lock the cell that is a single input for the whole sheet, such as a tax rate, and leave the cell that should move, such as each row's price, relative.

Syntax

Relative

A3

Both the column and the row adjust when the formula is filled down or across. Filled down, A3 becomes A4.

Absolute

$A$2

Neither part adjusts. Every copy still reads A2. This is the right lock for one tax rate, one quota, or one header stored in a single cell.

Mixed

A$2 or $A2

A$2 keeps row 2 and lets the column change when you fill across. $A2 keeps column A and lets the row change when you fill down. Use a mixed lock when a formula is copied in both directions, such as a price grid.

Comparison

QuestionRelative A3Absolute $A$2Mixed A$2 or $A2
Fill downRow number increasesStays on A2A$2 stays on row 2. $A2 moves down the column
Fill rightColumn letter increasesStays on A2$A2 stays in column A. A$2 moves across the row
Typical jobEach row's own price or quantityOne rate, date, or label shared by every rowA grid with headers in a fixed row and labels in a fixed column
How to type itType the referenceType the dollar signs, or press F4 once from A2Press F4 again to cycle A2, $A$2, A$2, $A2

Worked examples

A tax rate that must stay put

A2 is 0.08. A3 is a price of 100 and A4 is a price of 50. The price with tax is price times 1.08. The price should change when the formula moves down. The rate should not.

Tax rate 0.08 in A2. Prices 100 and 50 underneath.
RowA
1Tax rate
20.08
3100
450
  • =A3*(1+$A$2) → 108
  • =A4*(1+$A$2) → 54
  • =A3*(1+A2) → 108
  • =A4*(1+A3) → 5050

B3 and B4 lock $A$2, so both prices use 0.08. 100 becomes 108 and 50 becomes 54. C3 is the same math with a relative rate, and on the first row it still sees A2, so it also shows 108. C4 is what that relative formula becomes on the next row: A2 has shifted to A3, and A3 is the price 100, so the formula is 50*(1+100), which is 5050. The dollar signs are the whole difference.

When to use which

Lock a single input

Tax rate, discount, quota, or as-of date stored once at the top of the sheet. $A$2 in every row. The free relative-and-absolute drill and the tax drill both grade this lock.

Leave row-by-row values relative

Each order's price and quantity should move with the formula. If you lock those too, every row repeats the first order.

Use a mixed reference on a two-way grid

When you fill down and across, lock the header row with a dollar sign before the row number, and lock the label column with a dollar sign before the column letter. A one-direction fill, like the tax example, only needs the full lock.

Common mistakes

Filling a relative rate

The 5050 in C4 is the symptom. The formula looks plausible in the first data row and wrong in the second. Check the second row after you fill, not only the cell you typed.

Locking the value that should move

$A$3*(1+$A$2) filled down still multiplies 100. Every row shows 108. Lock the rate, not the price.

One dollar sign in the wrong place

$A2 filled down becomes $A3, $A4, and the rate is lost. A$2 filled down stays on the rate, which is what you wanted in this sheet. The dollar sign belongs on the part that must not move.

Assuming F4 always means absolute

F4 cycles. Once from A2 gives $A$2. Twice gives A$2. Three times gives $A2. A fourth press returns to A2. In Excel and in the Formula Drills grid the cycle is the same.

Versions and compatibility

Dollar signs mean the same thing in every Excel version and in Google Sheets. Filling down shifts relative references in both.

F4 cycles a reference in desktop Excel and in the Formula Drills grid. Google Sheets uses F4 for the same cycle on many keyboard setups. The characters you need are the dollar signs, however you type them.

Nothing on this page requires a new Excel function. The behavior is part of the formula language itself.

Practice on Formula Drills

Free drills are open with no account. Premium drills show the problem to everyone and grade the sheet for subscribers.

Free exercises

Premium exercises

Function pages

FAQ

What is the difference between absolute and relative references?

Relative references move when you copy the formula. Absolute references, marked with dollar signs, keep pointing at the same cell. Mixed references lock only the row or only the column.

Do I need dollar signs if I never fill the formula?

A formula that lives in one cell gives the same result with or without them. Add them when a copy would otherwise slide onto the wrong input, which is the normal way a column of formulas is built.

Can I lock a range?

Yes. $A$2:$A$10 does not move when copied. A2:A10 does. You can also lock one corner and not the other, which is useful less often.

Why does my second row show a huge number?

A relative reference probably landed on another price or on a total instead of on the rate. Compare the formula in row 3 with the formula in row 4. The rate cell should still say $A$2.