How to Copy a Formula Without Changing Its References
By ExcelReady TeamUpdated 5 min read
The short answer
To copy a formula without changing its references, lock them with dollar signs before you copy: $F$1 always points at F1. To keep a formula exactly as it is, cut and paste it instead (a moved formula keeps its references), copy its text from the formula bar, or press Ctrl+' (⌃' on a Mac) to copy the formula above.
Key takeaways
- Copying shifts relative references (B2 becomes B3). Dollar signs ($B$2) stop that.
- Press F4 while editing (fn+F4 or ⌘T on a Mac) to add the $ signs.
- Cut and paste (Ctrl+X, Ctrl+V) moves a formula and keeps its references exactly.
- Copying the formula text from the formula bar pastes an exact copy anywhere.
- Ctrl+' (⌃' on a Mac) copies the formula from the cell above without changing it.
On this page+
- Why Excel changes references when you copy
- Method 1: Lock references with $ before you copy
- Method 2: Cut and paste to move a formula
- Method 3: Copy the formula text from the formula bar
- Method 4: Ctrl+' copies the formula from the cell above
- Method 5: Copy many formulas at once with Find and Replace
- Copy formula without changing references: which method?
- Common mistakes when locking references
- Practise copying formulas
To copy a formula without changing its references, lock the references with dollar signs ($F$1) before you copy, or move the formula with cut and paste, which never changes references. For a single exact copy, copy the formula's text from the formula bar or press Ctrl+'. This guide explains why Excel changes references in the first place and when to use each method.
Why Excel changes references when you copy#
By default, references are relative: when you copy a formula, Excel moves them by the same distance as the copy. Here's a monthly sales table:
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Jan | Feb | Mar |
| 2 | Notebook | 120 | 135 | 150 |
| 3 | Pen | 340 | 310 | 365 |
| 4 | Stapler | 45 | 52 | 38 |
| 5 | Folder | 210 | 190 | 225 |
| 6 | =SUM(B2:B5) |
B6 shows 715. Copy B6 and paste it into C6, and the formula becomes =SUM(C2:C5), February's total (687). You moved one column right, so the range moved one column right too.
Most of the time, that's exactly what you want. The problem comes when one reference must not move.
Method 1: Lock references with $ before you copy#
A dollar sign locks the part of the reference right after it. $F$1 locks the column and the row, so it never moves. This is called an absolute reference.
| A | B | C | … | E | F | |
|---|---|---|---|---|---|---|
| 1 | Product | Price | Price incl. tax | Tax rate | 8% | |
| 2 | Laptop | 899 | ||||
| 3 | Monitor | 249 | ||||
| 4 | Keyboard | 79 |
If C2 is =B2*(1+F1) and you fill it down, C3 becomes =B3*(1+F2). F2 is empty, so the monitor gets no tax. Lock the rate instead:
=B2*(1+$F$1)Now C3 becomes =B3*(1+$F$1) and shows 268.92. B2 still moves to B3, because each row needs its own price. Only the rate is locked.
The quick way to add $ signs: while you edit, put the cursor on the reference and press F4. On a Mac, press fn+F4 or ⌘T. Each press cycles F1 → $F$1 → F$1 → $F1. The last two are mixed references, which lock only the row or only the column. Excel cell references explained covers all four.
Method 2: Cut and paste to move a formula#
When you cut a formula (Ctrl+X, or ⌘X on a Mac) and paste it, its references stay exactly the same. Excel treats it as a move, not a copy.
Cut is the right tool when the formula is in the wrong place and should still point at the same cells. Other formulas that use the moved cell are updated to follow it, so nothing breaks. The original cell is left empty.
Method 3: Copy the formula text from the formula bar#
To make an exact duplicate and keep the original, copy the formula as text:
- Click the cell with the formula.
- Click in the formula bar and select the whole formula, including the
=. - Press Ctrl+C (⌘C), then Esc to leave the cell unchanged.
- Click the new cell and press Ctrl+V (⌘V), then Enter.
The pasted formula is identical: =SUM(B2:B5) stays =SUM(B2:B5). This works anywhere, even on another sheet. You can also press F2 (⌃U on a Mac) to edit the cell and select the text there; editing cells without the mouse explains those keys.
Method 4: Ctrl+' copies the formula from the cell above#
Press Ctrl+' (Ctrl and the apostrophe key; ⌃' on a Mac) to copy the formula from the cell directly above into the active cell, unchanged. Excel puts it in edit mode, so you can change it before you press Enter.
It's the fastest way to repeat a total or a check formula exactly one row down.
Method 5: Copy many formulas at once with Find and Replace#
To copy a whole block of formulas exactly, you can turn them into text first:
- Select the formulas and press Ctrl+H (⌃H on a Mac) to open Replace.
- Replace
=with#=. The formulas become plain text. - Copy and paste the block where you need it.
- Select both blocks and replace
#=with=again.
This is an advanced trick. Make sure #= doesn't already appear in your sheet, and check a few results afterwards.
Copy formula without changing references: which method?#
Pick the method by what you're trying to do:
| You want to… | Use |
|---|---|
| Fill a formula down where one cell (a rate, a total) must stay fixed | $ signs (F4) |
| Move a formula to a new place | Cut and paste |
| Make one exact copy somewhere else | Copy from the formula bar |
| Repeat the formula from the row above | Ctrl+' (⌃') |
| Duplicate a whole block of formulas | Find and Replace |
In job tests and interviews, the $ sign is what people check most. Locking a rate is one of the most common Excel interview questions, and fixed rates and totals are everyday work in Excel for finance jobs.
Common mistakes when locking references#
Watch for these mistakes:
- Locking everything.
=$B$2*(1+$F$1)copied down gives the laptop's price in every row. Lock only what must stay fixed. - Locking the wrong part. When you fill right, the column letter moves.
B$2still moves to C2. Use$B2or$B$2. - Typing $ in the wrong place.
F$$1or$1Fare errors. The $ goes before the column letter and before the row number. - Forgetting the format. The rate in F1 should show as 8%, not 0.08, so people can read it. Here's how to format numbers as percent.
Practise copying formulas#
Open the relative vs absolute references lesson to fill a tax formula down, see it break, then fix it with $ and F4. The copy, cut and paste lesson shows how copied references move and how cut keeps them the same. Both run in a live sheet and take about five minutes each.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Add 8% tax to the laptop's price. In C2, type =B2*(1+$F$1) and press Enter. The $ signs lock the tax rate in F1, so the formula still works when you copy it down.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Price incl. tax | ||||||
| 2 | |||||||
| 3 | |||||||
| 4 | |||||||
| 5 | |||||||
| 6 | |||||||
| 7 | |||||||
| 8 | |||||||
| 9 |
Tip: Multiply the price in B2 by 1 plus the tax rate. Put a $ before the F and before the 1.
Practise this in a lesson
Frequently asked questions
How do I copy a formula in Excel without changing the cell references?
Add dollar signs to the references you want to keep, like $F$1, before you copy. For a one-off exact copy, copy the formula text from the formula bar and paste it into the new cell, or press Ctrl+' to copy the formula from the cell above.
What does F4 do in an Excel formula?
While you edit a formula, F4 adds or changes the $ signs on the reference at the cursor. Each press cycles F1, $F$1, F$1 and $F1. On a Mac, press fn+F4 or ⌘T.
Does cut and paste change formula references?
No. When you cut and paste a formula, its references stay exactly the same. Only copying shifts relative references.
Can I copy many formulas at once without changing references?
Yes. Use Find and Replace to change = to a placeholder such as #= so the formulas become text, copy and paste them, then replace #= back with =. Check the result carefully afterwards.
Why do my copied formulas show 0?
A reference probably moved to an empty cell. For example, =B2F1 copied down becomes =B3F2, and F2 is empty. Lock the cell with $ signs: =B2*$F$1.