Copy a formula down or across and keep the cell references working
When you copy a formula in Excel, the cell references inside it change automatically to match the new location. If your formula in cell A1 says =B1+C1, and you copy it to A2, it becomes =B2+C2. This is called a relative reference, and it is the default behavior. Most of the time this is exactly what you want — it saves you from typing the same formula over and over.
But sometimes you need a reference to stay put. If you want every formula to look at the same cell no matter where you copy it, you use an absolute reference by adding dollar signs. This guide shows you how to copy formulas the right way, when to lock references in place, and how to fix it when the numbers come out wrong.
Key Takeaways
- Copy a formula by selecting the cell, pressing Ctrl+C, then selecting the destination cells and pressing Ctrl+V — the cell references will adjust automatically.
- Use dollar signs to lock a reference in place: $B$1 stays the same when copied, while B1 changes to B2, B3, and so on.
- You can lock just the column ($B1) or just the row (B$1) if you need one part to stay fixed and the other to move.
- Double-click the small square in the bottom-right corner of a cell to copy the formula down automatically to all adjacent rows with data.
- If your copied formula shows the wrong numbers, check whether you meant to use absolute references by pressing F2 to edit and look at the cell addresses.
How to copy a formula with relative references
Start by clicking the cell that holds the formula you want to copy. In this example, let's say cell D2 contains =B2*C2 (multiplying the quantity in B2 by the price in C2). Press Ctrl+C to copy it.
Now select the range where you want the formula to go. If you want it in D3 through D10, click D3 and drag down to D10, or click D3 and then Shift+Click D10. Press Ctrl+V. Excel pastes the formula into each cell and automatically adjusts the references. D3 now reads =B3*C3, D4 reads =B4*C4, and so on. The formula adapts to each row.
This works the same way if you copy across columns instead of down rows. If you copy a formula from A1 to B1, a reference to column A becomes a reference to column B. Relative references are the reason you do not have to type the same formula dozens of times — Excel does the adjustment for you.
When to use absolute references with dollar signs
Absolute references are necessary when one cell should never change, even when you copy the formula elsewhere. The most common example is a tax rate, a discount percentage, or a conversion factor that applies to every row.
Say cell F1 holds a tax rate of 0.08 (8 percent). Your formula in B2 is =A2*$F$1. The dollar signs tell Excel to always look at F1, no matter where the formula is copied. When you copy this formula to B3, B4, and B5, they all still reference F1. Without the dollar signs, copying would change F1 to F2, F3, F4 — and your tax rate would be wrong.
Type the dollar signs yourself when you write the formula, or press F2 to edit an existing formula and add them. You can also click in the formula bar, select the cell reference you want to lock, and press Ctrl+Shift+P to toggle the dollar signs on and off (though typing them is usually faster).
Partial locks: fixing only the column or only the row
Sometimes you need to lock only part of a reference. Use $B1 to lock the column but let the row change, or B$1 to lock the row but let the column change.
Here is a practical example: you have a price list across the top row (row 1) and product names down the left column (column A). A formula in B2 that calculates a total might be =A2*$B$1 — locking the price in B1 but letting the product name in column A change as you copy down. If you copy this formula to B3, it becomes =A3*$B$1. The row reference to A changed, but the price in B1 stayed locked.
If you copy the same formula to the right (to C2), it becomes =A2*$C$1. Now the column reference to the price moved to C1, but the row stayed locked at row 1. This is useful for tables where you need to reference both a header row and a header column.
Use the fill handle to copy formulas quickly
The fill handle is the small square in the bottom-right corner of a selected cell. Click and drag it down or across to copy the formula to multiple cells at once. This is faster than copy-paste if you are filling a short range.
Click the cell with the formula, then position your cursor over the small square at the bottom-right corner until it turns into a crosshair. Click and drag down to the last row you want to fill. Release the mouse. Excel copies the formula and adjusts the references automatically, just as if you had used Ctrl+C and Ctrl+V.
If you want to fill down to the last row with data in an adjacent column, double-click the fill handle instead of dragging. Excel will automatically fill down to match the data above or beside it. This saves time when you have hundreds of rows — you do not have to count or drag all the way down.
Fix formulas that show wrong numbers after copying
If your copied formula gives unexpected results, the most likely cause is that a reference changed when it should not have, or stayed the same when it should have changed. Press F2 while the cell is selected to enter edit mode and see the formula with color-coded cell references. Each reference is highlighted in a different color, and the cells it points to are outlined in the same color on the spreadsheet.
Look at the cell addresses in the formula bar. If a reference should be locked but is not, add dollar signs and press Enter. If a reference should be relative but has dollar signs, remove them. Copy the corrected formula again to the rest of your range.
Another common mistake is copying a formula that refers to the wrong cells in the first place. Before you copy, click the original cell and check the formula bar to make sure it points to the right cells. A formula in the wrong cell will copy the wrong references to every other cell.
Copy formulas between sheets and workbooks
You can copy a formula from one sheet to another or even from one workbook to another. The process is the same — Ctrl+C to copy, then navigate to the new location and Ctrl+V to paste. Cell references work the same way: relative references adjust to the new location, and absolute references stay locked.
If you copy a formula to a different sheet, the reference in the formula bar will include the sheet name. For example, =Sheet2!B2*C2 means the formula is looking at cell B2 on Sheet2. If you copy this formula to another cell, the B2 reference will adjust (to B3, B4, and so on) unless you locked it with dollar signs.
When copying between workbooks, make sure both files are open. Copy from the source file, switch to the destination file, and paste. If the destination file is closed when you paste, Excel will create an external reference that includes the file path, which can break if you move the files later.
Frequently Asked Questions
What is the difference between copying a formula and copying a value?
When you copy a cell with a formula, Excel pastes the formula itself and recalculates it in the new location. When you copy a cell with a value (a number you typed), it pastes that same number. If you want to paste only the result of a formula without the formula itself, use Paste Special (Ctrl+Shift+V) and choose Values.
Can I copy a formula from one column to multiple columns at once?
Yes. Select the cell with the formula, copy it, then select the entire range where you want it to go (for example, D2:F10) and paste. Excel will fill the entire range and adjust the references for each cell. You can also select the original cell and drag the fill handle across multiple columns.
Why does my formula show a circular reference error after copying?
A circular reference means the formula refers back to itself, directly or indirectly. This usually happens when you copy a formula to a cell that the formula already references. For example, if B2 contains =B2+A2, it creates a loop. Check that your copied formula does not point to its own cell or to a cell that points back to it.
How do I copy a formula but keep it from adjusting the references?
Use absolute references with dollar signs ($A$1) for any cell that should not change when copied. If every reference in your formula should stay locked, put dollar signs on all of them. If only some should be locked, use dollar signs only on those.
What happens if I copy a formula to a cell that already has a formula?
The new formula replaces the old one completely. If you want to keep the old formula, insert a new row or column first, or paste into an empty cell and then move it. There is no undo for this if you do not notice right away, so be careful when pasting over existing formulas.