Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Copy a Formula in Excel: Step-by-Step Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Copying a formula in Excel means duplicating it to another cell so it calculates with the new cell's data, and the safest way is to copy the cell and paste it into the target cell—Excel adjusts relative references automatically. If you want the formula to stay exactly the same, you need to make the references absolute before you copy. This guide covers both cases, plus the keyboard shortcuts and common pitfalls that trip people up.

What You'll Need

  • Excel on Windows, Mac, or the web (the steps below work in all three; menu labels can differ slightly by version and platform).
  • A worksheet with at least one formula already entered.
  • Basic familiarity with cell references (A1, B2, etc.).

Step-by-Step

  1. Select the cell containing the formula. Click it once. The formula appears in the formula bar at the top. If you only want to copy part of the formula, double-click the cell to enter edit mode and select the portion you need.
  2. Copy the cell. Press Ctrl+C (Windows) or Command+C (Mac), or right-click and choose Copy. A moving dashed border appears around the cell.
  3. Select the destination cell. Click the cell where you want the formula to go. To copy into multiple cells, select the whole range—for example, drag across C2:C10.
  4. Paste. Press Ctrl+V (Windows) or Command+V (Mac), or right-click and choose Paste. The formula is copied and relative references shift to match the new location. For example, a formula in B2 that references A2 will reference A3 when pasted into B3.
  5. Check the result. Click the pasted cell and look at the formula bar. Confirm the references point where you expect. If the result looks wrong, the references probably shifted in a way you did not intend.
  6. For an exact copy, lock the references first. Before copying, edit the original formula and add dollar signs to the parts that must not change—$A$1 locks both column and row, $A1 locks only the column, A$1 locks only the row. Then copy and paste as above. The locked parts stay fixed; unlocked parts still adjust.

Shortcut alternative: To fill a formula down a column, select the cell with the formula and the cells below it, then press Ctrl+D (Windows) or Command+D (Mac). To fill across a row, use Ctrl+R (Windows) or Command+R (Mac). This is faster than copy-and-paste for long columns and behaves the same way with relative references.

Copying the formula as text: If you want to see the formula itself rather than its result—for documentation, for example—copy the cell, then paste into a plain-text editor such as Notepad or TextEdit. You can also prefix the formula with an apostrophe in the destination cell to display it as text.

Common Mistakes

  • Forgetting to lock references. The most common error: you copy a formula that refers to a tax rate in one cell, paste it down a column, and every copy now points to a blank cell because the reference shifted. Use $ to lock the rate cell before copying.
  • Pasting values instead of formulas. Paste Special > Values pastes the calculated number, not the formula. If the pasted cells no longer update when source data changes, you pasted values.
  • Copying across sheets without checking references. A relative reference that pointed to a cell on the same sheet will still point to that sheet after pasting to another sheet—it does not automatically switch sheets. Verify the sheet name in the formula bar.
  • Overwriting data. Pasting into a range that already contains data replaces it without warning. Select the destination carefully, or paste into an empty area first and move the result.
  • Dragging the fill handle by accident. The small square at the bottom-right of a selected cell fills formulas when dragged. If a formula appears in cells you did not intend to change, undo with Ctrl+Z (Windows) or Command+Z (Mac).

Tips

  • Press F2 (Windows) or Control+U (Mac) to toggle between viewing a cell's result and its formula without leaving the cell.
  • Use Ctrl+` (the grave accent key, usually below Esc) to show all formulas on the sheet at once—handy for auditing a copied range. Press it again to return to normal view.
  • When copying a formula to many rows, copy the original cell, select the full destination range, and paste once. Excel adjusts each copy relative to its own row or column.
  • If you need the same formula in several non-adjacent cells, hold Ctrl (Windows) or Command (Mac) while clicking each destination, then paste once.
  • Name a key cell (Formulas > Define Name) and reference the name in your formula instead of a cell address. Named references do not shift when copied, which removes the need for dollar signs in many cases.

Troubleshooting

If the pasted formula gives a wrong result, click the cell and inspect the formula bar. The references are the first thing to check: compare them with the original. If they shifted when they should not have, undo the paste, add dollar signs to the original, and copy again.

If you see #REF! after pasting, the formula refers to a cell that no longer exists—often because the source range was deleted or the formula was pasted outside the sheet's used area. Edit the formula and point it at a valid range.

If the pasted cell shows the formula text instead of a result, the cell is formatted as Text. Select it, open the Home tab, change the number format to General, then re-enter the formula (press F2, then Enter) to force recalculation.

If nothing pastes at all, check whether the worksheet is protected. On the Review tab, look for Unprotect Sheet. You will need the password if one was set. Also confirm you are not in edit mode—press Esc to exit, then try again.

If formulas copied between workbooks break, the source workbook may have been closed or moved. Open both workbooks, copy again, and use Paste Special > Formulas if you want to avoid bringing formatting across.

Frequently Asked Questions

How do I copy a formula without changing the cell references?

Make the references absolute by adding dollar signs before copying—$A$1 locks both the column and the row. Alternatively, copy the formula from the formula bar as text and paste it into the destination cell.

Why does my copied formula show a different result?

Relative references adjust to the new location, so the formula is now calculating with different cells. Check the formula bar and lock the references that should stay fixed.

Can I copy a formula to another sheet?

Yes. Copy the cell, switch to the other sheet, and paste. Relative references still point to the original sheet unless you edit them; include the sheet name in the reference if you want it to follow the paste.

How do I copy only the formula and not the formatting?

Use Paste Special and choose Formulas. On Windows, right-click the destination and pick Paste Special > Formulas; on Mac, use Edit > Paste Special > Formulas. This pastes the calculation without borders, colors, or number formats.

What is the fastest way to copy a formula down a long column?

Select the cell with the formula and the cells below it, then press Ctrl+D (Windows) or Command+D (Mac). This fills the formula down and adjusts relative references automatically.

Why does my formula show as text after pasting?

The destination cell is likely formatted as Text. Change the format to General, then re-enter the formula to force Excel to calculate it.