logo
search
Formula Errors

How to Keep Excel Cell References from Changing When Copying Formulas

Partner EditorPartner Editor Oct 7, 2026 869 views

Question details

The user wants to prevent Excel from automatically adjusting cell references when copying and pasting formulas between worksheets.

How to Keep Excel Cell References from Changing When Copying Formulas
Product
Excel
Device & OS
not provided
Scenario
Copying a formula from one worksheet (e.g., an employer entry sheet) to a main invoicing worksheet.
Observed behavior
The cell reference changes automatically upon pasting (e.g., shifting from AK2 to AL2), instead of preserving the exact original reference.
Before you start

Determine exactly which parts of your formula need to remain constant—whether it is the specific row, the column, or both—before modifying your cell references.

Solution 1Recommended

Use Absolute Cell References to Lock Rows and Columns

Convert relative cell references to absolute references by adding dollar signs ($), which locks the reference in place when copying.

By default, Excel uses relative cell references, meaning it shifts row and column letters based on where you paste the formula. Applying an absolute reference forces Excel to always point to the exact same cell.

1
Edit the original formula

Double-click the cell containing the original formula in your source worksheet to enter Edit mode.

2
Select the reference to lock

Click inside the specific cell reference you want to keep unchanged (for example, AK2).

3
Apply the absolute reference shortcut

Press the F4 key on your keyboard. This will automatically add dollar signs to both the column and row (e.g., changing AK2 to $AK$2). Alternatively, you can type the $ symbols manually.

4
Copy and paste

Press Enter to save the formula. You can now copy this cell and paste it into your destination worksheet; the reference will remain exactly as $AK$2.

Use Absolute Cell References to Lock Rows and Columns
Partial Locking (Mixed References): You can press F4 multiple times to toggle through mixed references: $AK2 locks only the column so it won't change to AL, while AK$2 locks only the row.
Lock cell references easily

Use WPS Spreadsheet to Manage Formulas Efficiently

WPS Spreadsheet offers full compatibility with Microsoft Excel formulas, shortcuts, and functions. You can easily lock cell references using the exact same F4 shortcut and seamlessly copy data across multiple worksheets.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your formulas.
  2. 2. Edit the formula: Double-click the cell containing the formula you wish to copy.
  3. 3. Lock the reference: Highlight the cell reference and press the F4 key to lock it (e.g., turning A1 into $A$1).
  4. 4. Paste without changing: Copy the updated cell and paste it to your desired worksheet without losing the original reference.
Fully compatible with Microsoft Excel formulas and .xlsx formats.Use the familiar F4 keyboard shortcut to toggle absolute, relative, and mixed references.Free, lightweight, and fast alternative for heavy data processing.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel change my formula when I copy it?

By default, Excel uses relative cell references. This means that when you copy a formula, it adjusts the cell references based on the relative position of rows and columns to the new destination. This is helpful for applying a formula down an entire column, but problematic when you need to refer to a fixed static value.

What is the keyboard shortcut to add dollar signs in Excel?

The F4 key is the standard shortcut in Excel. Simply place your cursor in the cell reference within the formula bar and press F4 to cycle through absolute ($A$1), mixed row-locked (A$1), mixed column-locked ($A1), and relative (A1) references.

How do I lock only the row or only the column in a formula?

You can create a mixed reference by placing the dollar sign only in front of the specific element you want to lock. For example, $A1 locks column A while allowing the row number to adjust, whereas A$1 locks row 1 while allowing the column letter to adjust when pasted elsewhere.