The fastest way to copy a formula down is to select the cell with the formula, then double-click the small square at the bottom-right corner of the cell
That small square is called the fill handle. When you double-click it, Excel automatically copies your formula down to every row that has data in the columns next to it. This works when your data is in a continuous block with no blank rows in the middle.
If your data has gaps or you want to copy the formula to a specific number of rows, you can drag the fill handle down instead of double-clicking. Click and hold the fill handle, then drag it down as far as you need. Excel will copy the formula to each row you pass over.
A third option is to select the cell with the formula, then select the range where you want the formula to go, and press Ctrl+D (or Cmd+D on Mac). This fills down the formula to all selected cells at once.
Key Takeaways
- Double-clicking the fill handle (the small square at the bottom-right of a cell) copies a formula down to all rows with adjacent data.
- Dragging the fill handle down lets you copy a formula to a specific number of rows you choose.
- Selecting a range and pressing Ctrl+D fills the formula down to every cell in that range.
- Excel automatically adjusts cell references in the formula as it copies down, so each row calculates based on its own data.
- If you want the formula to reference the same cell every time, use a dollar sign before the column letter or row number to lock it in place.
Understanding how Excel adjusts formulas when you copy them down
When you copy a formula down, Excel changes the cell references automatically. If your original formula in row 2 is =A2+B2, then row 3 becomes =A3+B3, row 4 becomes =A4+B4, and so on. This is called a relative reference, and it is what you want most of the time.
Sometimes you need a formula to always reference the same cell, even as you copy it down. For example, if you have a tax rate in cell D1 that applies to all rows, you want every formula to multiply by D1, not D2, D3, and so on. To lock a cell reference in place, put a dollar sign before the column letter and the row number: $D$1. This is called an absolute reference.
You can also lock just the column or just the row. $D2 keeps the column locked but lets the row change, so it becomes $D3, $D4, and so on. D$1 keeps the row locked but lets the column change. Most of the time you will use $D$1 for a single cell you want to stay the same.
Using the fill handle to copy formulas to the right
The fill handle works left and right as well as up and down. If you have a formula in one column and want to copy it across to other columns, select the cell with the formula and drag the fill handle to the right. Excel will adjust the column references as it copies.
You can also select the cell with the formula, then select the range across to where you want it to go, and press Ctrl+R to fill right. This is faster than dragging if you know exactly how many columns you need.
What to do when double-clicking the fill handle does not work
Double-clicking the fill handle only works when there is continuous data in the columns next to the formula cell. If there are blank cells or gaps in your data, Excel will not know how far down to copy and will stop at the first gap.
In this case, drag the fill handle down manually to the last row you need, or select the range you want to fill and use Ctrl+D. Another option is to select the cell with the formula, then hold Shift and click the last cell where you want the formula to go. Then press Ctrl+D to fill the entire selection.
Copying formulas without changing the cell references
If you want to copy a formula to another location but keep all the cell references exactly the same, use absolute references for every cell in the formula. For example, instead of =A2+B2, write =$A$2+$B$2. Now when you copy this formula anywhere, it will always add those same two cells.
This is useful when you have a template formula that you want to use in multiple places without recalculating based on different rows. Most of the time, though, you want relative references so the formula adjusts to each row automatically.
Copying formulas between sheets
You can copy a formula from one sheet to another. Select the cell with the formula, copy it (Ctrl+C), go to the other sheet, select where you want it, and paste (Ctrl+V). Excel will adjust the cell references based on the new location, just as it does when copying within a sheet.
If the other sheet has a different structure or you want to reference cells from the first sheet, you can edit the formula to include the sheet name. For example, =Sheet1!A2+B2 adds the value from cell A2 in Sheet1 to the value in B2 of the current sheet. Use dollar signs to lock sheet references if you need them to stay the same when you copy.
Frequently Asked Questions
Why does my formula show the same result in every row after I copy it down?
This usually means you used absolute references (dollar signs) when you meant to use relative references. Check your formula and remove the dollar signs from the cells that should change with each row. For example, change =$A$2+$B$2 to =A2+B2 so the row numbers increase as you copy down.
Can I copy a formula down to thousands of rows at once?
Yes. Select the cell with the formula, then select the entire range where you want it to go (you can type the range in the Name Box, like A2:A5000), and press Ctrl+D. Excel will fill the formula down to every cell in that range instantly, even if it is thousands of rows.
What is the difference between copying a formula and copying a value?
When you copy a formula, Excel copies the calculation itself, and the formula adjusts based on the new location. When you copy a value, you copy only the result that the formula produced at that moment. To copy only values, use Paste Special (Ctrl+Shift+V) and choose Values Only.
How do I copy a formula down but keep one part of it locked?
Use a mix of absolute and relative references. For example, =A2*$D$1 will copy the A2 reference down to A3, A4, and so on, but will always multiply by D1. This is useful when you have a constant (like a tax rate or exchange rate) that should apply to every row.
Can I undo copying a formula if I made a mistake?
Yes. Press Ctrl+Z to undo the last action, including filling down a formula. You can undo multiple times to go back several steps if needed.