Copy formulas and keep them working the way you expect

When you copy a formula in Excel, the cell references inside it change automatically. If you copy a formula from B2 to B3, a reference to A2 becomes A3. This is usually what you want — it lets you build a formula once and paste it across a row or down a column. But sometimes you need the reference to stay the same, or you need to copy just the result without the formula. Excel gives you three ways to handle this: relative references (the default), absolute references (which lock a cell), and Paste Special (which copies only the values).

Understanding which type of reference to use depends on what you are trying to do. If you are copying a formula down a column and want each row to reference the corresponding cell in an adjacent column, relative references work perfectly. If you are using a single value — like a tax rate or discount — across multiple formulas, you need absolute references. If you want to copy only the numbers a formula produced, without the formula itself, Paste Special is the tool.

Key Takeaways

  • Relative references change when you copy a formula down or across, so A2 becomes A3, A4, and so on — this is the default behavior.
  • Absolute references use dollar signs ($A$2) and stay the same no matter where you paste the formula.
  • Mixed references lock only the row or only the column, letting you copy in one direction while keeping the other fixed.
  • Paste Special lets you copy only the values (the results) without the formulas, or copy formulas while leaving formatting behind.

Using absolute references to lock cells in place

An absolute reference uses dollar signs before both the column letter and row number: $A$2. When you copy a formula with an absolute reference, that reference does not change. This is useful when you have a single value — like a tax rate or a discount percentage — that you want to use in multiple formulas.

To create an absolute reference, type the dollar signs yourself, or click the cell reference in the formula bar and press F4. Each time you press F4, Excel cycles through four versions: A2 (relative), $A$2 (absolute), A$2 (row locked), and $A2 (column locked). Stop when you see the version you need. Then copy the formula normally — the absolute reference will not change when you paste it.

Example: You have a sales tax rate in cell E1 (0.08). In column B, you have prices. In column C, you want to calculate the tax on each price. Write the formula =B2*$E$1 in C2. When you copy this formula down to C3, C4, and beyond, the B reference changes to B3, B4, and so on, but $E$1 stays locked to E1. This way, every row calculates tax using the same rate from E1.

Mixed references: lock only the row or only the column

A mixed reference locks either the row or the column, but not both. Use $A2 to lock the column (A stays A, but 2 becomes 3, 4, 5). Use A$2 to lock the row (2 stays 2, but A becomes B, C, D). This is useful when you have a table where you need to reference a header row or a key column that should not move.

Create a mixed reference the same way as an absolute reference: type the dollar signs, or select the cell reference and press F4 until you see the pattern you want. Mixed references are common in lookup tables or when you are building a multiplication table where one axis should stay fixed. The dollar sign goes in front of the part you want to lock — the column letter or the row number.

Example: You have months across the top row (January in B1, February in C1, and so on) and product names down the left column (Product A in A2, Product B in A3, and so on). In B2, you write =A2&" - "&$B$1 to combine the product name with the month. When you copy this across and down, the month reference ($B$1) stays locked to the header, but the product reference (A2) changes to A3, A4, and so on. Each cell shows the correct product and month combination.

Copying formulas with Paste Special

Paste Special gives you fine control over what gets pasted. You can paste only the values (the results of the formula), only the formulas, only the formatting, or any combination. This is useful when you want to copy a result without the formula, or when you want to move a formula to a new location without bringing along the original cell's formatting.

To use Paste Special, copy the cell or range (Ctrl+C or Cmd+C). Then right-click where you want to paste and select Paste Special, or press Ctrl+Shift+V (Cmd+Shift+V on Mac). A dialog box opens with options. Check "Values" to paste only the numbers or text that the formula produced, not the formula itself. Check "Formulas" to paste only the formula, leaving formatting behind. You can also paste only the formatting, only the borders, or only the comments.

Example: You have a formula in B2 that calculates a total. You want to send the result to a colleague, but you do not want them to see your formula. Copy B2, then Paste Special and choose "Values". The cell now contains only the number, not the formula. If you later change the original formula, this pasted value will not update — it is now a static number.

Copying across rows versus down columns

When you copy a formula across a row (left to right), the column letter changes and the row number stays the same. When you copy down a column (top to bottom), the row number changes and the column letter stays the same. This matters when you use mixed references, because the direction you copy determines which part of the reference changes.

If you write =A$2 (row locked) and copy across a row, the column changes (A becomes B, C, D) but the row stays 2. If you copy down a column, the column stays A but the row changes (2 becomes 3, 4, 5). If you write =$A2 (column locked) and copy across, the column stays A but the row changes. If you copy down, the column stays A and the row changes — so the column lock does nothing in this direction. Think about which direction you are copying before you choose your reference type. If you are building a row of formulas that all reference the same column, use a column-locked reference. If you are building a column of formulas that all reference the same row, use a row-locked reference.

Copying formulas between sheets

When you copy a formula from one sheet to another, the references change in the same way as they do within a sheet — relative references adjust, and absolute references stay locked. If your formula references a cell on a different sheet, the sheet name appears in the reference: Sheet2!A2. When you copy this formula, the sheet name stays the same, but the cell reference changes according to whether it is relative or absolute.

If you want to reference a specific cell on another sheet and have that reference stay the same no matter where you paste, use an absolute reference with the sheet name: Sheet2!$A$2. If you want the cell reference to change but always point to the same sheet, use a relative reference: Sheet2!A2 (the sheet name does not change, but A2 becomes A3, A4, and so on). This is useful when you have a lookup table on a separate sheet that you reference from multiple places in your main sheet.

Dragging versus copying and pasting

When you drag the fill handle (the small square at the bottom-right corner of a cell) down or across, Excel copies the formula and adjusts relative references the same way it does when you copy and paste. Dragging is faster for small ranges, but copy and paste is more reliable for large ranges or when you want to paste to a non-adjacent area.

If you drag and the formula does not adjust the way you expected, check whether you used the right reference type. Dragging respects absolute and mixed references just as copy and paste do. If you want to drag but keep a reference locked, use the dollar signs before you start dragging. You can also double-click the fill handle to auto-fill down to the last row with data in an adjacent column, which is faster than dragging manually.

Frequently Asked Questions

What happens if I copy a formula without using absolute references?

The cell references change automatically. If you copy =A2+B2 from row 2 to row 3, it becomes =A3+B3. This is usually what you want, but if you need a reference to stay the same, add dollar signs to lock it.

How do I copy only the result of a formula, not the formula itself?

Copy the cell, then Paste Special and choose "Values". The cell will contain only the number or text the formula produced, not the formula. You can then delete the original formula if you want.

Can I copy a formula to a different sheet?

Yes. Copy the cell normally, switch to the other sheet, and paste. The formula will adjust its references the same way it does within a sheet. If you want a reference to stay locked to a specific cell on the original sheet, use an absolute reference like Sheet1!$A$2.

What is the difference between $A$2 and A$2?

$A$2 locks both the column and row, so it never changes when you copy. A$2 locks only the row, so the column changes when you copy across but the row stays 2. Use A$2 when you are copying across a row and need to reference a specific row that should not move.

Why does my formula show a different result after I copy it?

The formula is probably referencing different cells than you intended. Check whether you used relative or absolute references. If a reference should have stayed the same but changed, add dollar signs and copy again. If you are not sure what the formula is doing, click the cell and look at the formula bar to see which cells it is referencing.