How to Keep Excel Cell References from Changing When Copying Formulas
Question details
The user wants to prevent Excel from automatically adjusting cell references when copying and pasting formulas between worksheets.

- 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.
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.
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.
Double-click the cell containing the original formula in your source worksheet to enter Edit mode.
Click inside the specific cell reference you want to keep unchanged (for example, AK2).
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.
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.

Verify Hidden Columns and Destination Alignment
Ensure that the structure of the destination sheet aligns with the source sheet, as hidden columns can cause unexpected referencing shifts.
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. Open your workbook: Launch WPS Spreadsheet and open the file containing your formulas.
- 2. Edit the formula: Double-click the cell containing the formula you wish to copy.
- 3. Lock the reference: Highlight the cell reference and press the F4 key to lock it (e.g., turning A1 into $A$1).
- 4. Paste without changing: Copy the updated cell and paste it to your desired worksheet without losing the original reference.

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.




