zaro

How to Copy Excel Formula to Another Cell with Changing Reference?

Published in Excel Formulas 2 mins read

To copy an Excel formula to another cell while automatically adjusting the cell references, follow these steps:

  1. Select the cell containing the formula you want to copy (e.g., B10).
  2. Copy the cell: You can do this in several ways:
    • Click the Copy button in the Clipboard group on the Home tab.
    • Right-click the cell and select Copy.
    • Press Ctrl + C (or Cmd + C on a Mac).
  3. Select the destination cell(s) where you want to paste the formula (e.g., C10:D10).
  4. Paste the formula: You can do this in several ways:
    • Click the Paste button in the Clipboard group on the Home tab.
    • Right-click the cell and select Paste.
    • Press Ctrl + V (or Cmd + V on a Mac).

Excel automatically updates the cell references in the copied formula based on the relative position of the destination cell(s). This is known as relative referencing.

Example:

Suppose cell B10 contains the formula =A10+1.

  • If you copy this formula to cell C10, the formula in C10 will become =B10+1. (Column A becomes column B).
  • If you copy this formula to cell D11, the formula in D11 will become =C11+1. (Column A becomes Column C, and row 10 becomes row 11.)

Controlling Reference Changes with Absolute References:

If you don't want a cell reference to change when you copy the formula, you can use absolute references. An absolute reference is specified by adding a dollar sign ($) before the column letter and/or row number.

For instance:

  • $A10 - The column is absolute (will not change), and the row is relative (will change).
  • A$10 - The row is absolute (will not change), and the column is relative (will change).
  • $A$10 - Both the column and row are absolute (will not change).

Using the above example, if the formula in B10 was =$A$10+1 and you copied it to C10, the formula in C10 would still be =$A$10+1.

Formula Auditing Tools:

Excel provides formula auditing tools to visually trace the precedent and dependent cells of a formula. This helps you understand how the formula is working and verify if cell references are adjusted as you expect.

By using relative and absolute references strategically, you can efficiently copy formulas throughout your worksheets while maintaining the correct calculations.