Relative Cell Addressing in Excel: How It Works
In this article
Relative cell addressing in Excel means that when you copy a formula from one cell to another, the cell references inside it shift by the same number of rows and columns you moved. It is Excel's default behaviour: type =A1*2 in B1 and copy it down to B2, and the formula becomes =A2*2 because the reference moved one row down. Nothing needs installing - relative addressing is switched on out of the box, and the only thing you need is a formula that contains a cell reference you intend to copy elsewhere.
What You'll Need
- Excel on Windows, macOS, or Excel for the web (the steps are the same; only a few menu labels differ slightly by version and region).
- A worksheet with data laid out in rows and columns - for example amounts in column A and a rate you want applied in column B.
- At least one formula containing a cell reference, such as
=A2*2.
Step-by-Step
- Set up a simple table. Put values in A2:A10 and a multiplier in a cell such as C1. This gives you something concrete to copy.
- Write the first formula using plain references. Click B2 and type
=A2*$C$1. The A2 part is relative; the $C$1 part is absolute and will stay put. Press Enter. - Confirm the result looks right. B2 should show A2 multiplied by the value in C1. If it shows an error, check that A2 holds a number and C1 is not blank.
- Copy the formula down. Select B2, press Ctrl+C (Cmd+C on Mac), select B3:B10, and press Ctrl+V (Cmd+V). Each pasted row shifts the relative reference one row down: B3 holds
=A3*$C$1, B4 holds=A4*$C$1, and so on. - Alternatively, drag the fill handle. Hover the small square at the bottom-right corner of B2 until the cursor becomes a thin black cross, then drag down to B10. This copies the formula and shifts relative references exactly as pasting does.
- Copy across columns to see the column shift. In a blank area, enter
=A2in B2, then copy B2 to C2 and D2. The results become=B2and=C2: relative references move horizontally as well as vertically. - Verify the shift. Click any copied cell and look at the formula bar. You are checking that the reference letter and number have both adjusted to match the new position, not that the text is identical.
- Move versus copy. If you cut (Ctrl+X) and paste a formula, relative references do not shift; if you copy and paste, they do. Use this deliberately: cut when you want the formula to keep pointing at the same cells.
- Convert to absolute when a reference should not move. Select the reference in the formula bar and press F4 (on Mac, Fn+F4 on many keyboards) to cycle A1 → $A$1 → A$1 → $A1. Press F4 once to lock both column and row. Press it twice to lock only the row (A$1) and three times to lock only the column ($A1).
- Check the whole range at once. Select B2:B10 and press Ctrl+` (the key left of 1) to show formulas instead of results. Scan for any reference that should have stayed fixed but drifted. Press Ctrl+` again to return to normal view.
Common Mistakes
Forgetting the dollar signs on a fixed cell. The classic error is writing =A2*C1 and copying down: C1 becomes C2, C3 and C4, so the multiplier drifts and you get wrong answers or #DIV/0! errors. Lock the reference with $C$1.
Assuming a moved formula keeps its targets. Cutting a formula to a new location keeps the references the same. If you expected them to shift, use copy and paste instead.
Editing the formula instead of the copied cells. Typing over one copied cell breaks the pattern. Re-copy from the original to restore consistency.
Mixing relative and absolute references across sheets. A reference to another sheet such as Sheet2!A1 is still relative by default and will shift when copied. Add dollar signs if it should stay on a fixed cell.
Copying a formula into a row that filters hidden data. Copies apply to hidden rows too unless you select visible cells only. If your totals look wrong after filtering, check that first.
Tips
- Use F4 while the cursor sits next to a reference in the formula bar - it edits only that reference, so you do not have to retype the formula.
- Write one correct row, test it, then fill the rest. Testing a single formula is far faster than spotting an error in fifty copied cells.
- Prefer a single locked input cell (like $C$1) over typing the same number into many formulas; changing it then updates every result at once.
- Use the formula-view shortcut Ctrl+` to proofread a large block of relative formulas at a glance.
- Remember the pattern: relative moves, absolute stays, mixed locks one direction only. That single sentence explains most reference behaviour.
Troubleshooting
The numbers are wrong after copying. Click a suspect cell and look at the formula bar. If the reference drifted to a cell you did not intend, the fix is to add dollars to the part that should not move and re-copy.
You see #REF!. This means a reference now points outside the sheet - typically after copying a formula up or left from row 1 or column A. Undo with Ctrl+Z, then adjust the starting cell or lock the reference.
The formula copied as text. Check that the source cell does not begin with an apostrophe and that the cell is formatted as General, not Text. Re-enter the formula if needed.
F4 does nothing. On many laptops the function keys are mapped to brightness or volume. Hold Fn while pressing F4, or change the keyboard's function-key setting.
Pasting shifts the wrong way. Confirm you used copy rather than cut. Also check you are pasting into the intended top-left cell; the shift is measured from the original to that one cell.
If all of that fails and the file behaves oddly, save your work, close and reopen Excel, and test on a fresh blank sheet. If it works there, the issue is in the original sheet's layout, not in relative addressing.
Frequently Asked Questions
Is relative addressing the default in Excel?
Yes. Any reference you type without dollar signs, such as A1, is relative and will adjust when the formula is copied.
What is the difference between relative, absolute and mixed references?
A relative reference (A1) shifts on copy. An absolute reference ($A$1) stays fixed. A mixed reference locks one part, like A$1 (row fixed, column moves) or $A1 (column fixed, row moves).
Does relative addressing work in Google Sheets?
Yes. Sheets uses the same A1-style references and the same dollar-sign rules, so formulas transfer between the two with little or no change.
How do I stop a reference from shifting?
Put dollar signs in front of the column letter and row number, or press F4 with the cursor on the reference. Either way produces $A$1.
Why did my reference change when I moved the formula?
If you copied and pasted it, that is normal. If you cut and pasted, references should not shift - so recheck whether you used Ctrl+C or Ctrl+X.
Can I convert relative references to absolute in bulk?
Not with a single built-in command you can rely on across versions. Select each reference in the formula bar and press F4, or type the dollar signs directly.