Skip to main content

How to Copy a Formula to Other Cells in Excel

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

Write a formula once, then copy it to the other rows. Excel adjusts the cell references as it pastes, so row 11's copy uses row 11's cells, while references with $ signs stay pointing at the same cell. Select, Ctrl+C, select the target cells, Ctrl+V (Cmd+C and Cmd+V on a Mac).

The example is the Clock change sheet from How to Calculate Hours Worked Across a Daylight Saving Time Change in Excel. Row 10 has two formulas, Excel hours in C10 and Real hours in D10, and rows 11 and 12 need the same.

Prerequisites​

Step 1: Copy the Cells​

Select the cells with the formulas, C10:D10, and press Ctrl+C (Cmd+C). A moving dashed border marks what's been copied:

Cells C10 and D10, showing 8 and 9, surrounded by a dashed border after copying, with the formula bar showing =(B10-A10)*24 for C10

Step 2: Select Where They Go​

Select the cells to fill, C11:D12. Two columns and two rows: Excel pastes the copied pair into each row:

The dashed border still around C10 and the empty range C11 selected below it

Step 3: Paste​

Press Ctrl+V (Cmd+V). Rows 11 and 12 get their own results, 8 and 7, then 8 and 8:

C11 filled with 8 and 7 in row 11 and 8 and 8 in row 12, with the formula bar showing =(B11-A11)*24 for C11

Press Esc to clear the dashed border.

Step 4: Check How the References Changed​

Select a pasted cell and read its formula. C11 became =(B11-A11)*24: every reference moved down one row. D11 shows the difference $ makes:

Clock change → D11
=C11+AND(A11<$C$7,B11>$C$7)-AND(A11<$B$7,B11>$B$7)

D11 selected and outlined in red showing 7, with the formula bar showing =C11+AND(A11<$C$7,B11>$C$7)-AND(A11<$B$7,B11>$B$7)

C10, A10 and B10 became C11, A11 and B11, but $C$7 and $B$7 didn't change: every row compares its shift with the same clock-change times. How to Use Absolute and Mixed Cell References in Excel explains the $ signs.

Common Mistakes​

MistakeWhat happensDo this instead
Forgetting $ on a cell every row should useThe copies point at empty cells further downMake that reference absolute before copying
Copying values instead of formulas from somewhere elseThe pasted cells don't updateCopy the cell that holds the formula
Retyping the formula in every rowSlow, and easy to get one row wrongType it once and copy it

Troubleshooting​

SymptomLikely causeFix
A pasted row shows a wrong resultA reference that should be fixed movedAdd $ to it in the original, copy again
The dashed border is still there after pastingExcel keeps the copy ready to paste againPress Esc when you're done

FAQ​

Do I need to copy formulas in an Excel table?​

No. In a table, a formula typed in one row of a column fills the whole column by itself: How to Add a Calculated Column to an Excel Table.

Can I copy the formula with the ribbon instead?​

Yes. Copy is on the Home tab. I used the keyboard, which works the same in Excel for the web and the desktop app.

Conclusion​

Copy the formula cells, select the cells to fill, and paste. Ordinary references move with each row; references with $ stay put.

Additional Resources​