How to Prevent Excel References from Changing When Rows Are Inserted
Question details
The user needs to lock cell references in Excel so they do not shift or skip data when new rows are inserted, particularly from external sources like Jotform.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Pulling dynamic data into a spreadsheet where external applications or automated workflows frequently insert new rows at the top or middle of the dataset.
- Observed behavior
- Standard cell references shift down or change automatically when new rows are inserted, causing formulas to pull data from incorrect, empty, or skipped cells.
Identify the exact worksheet name and the absolute row and column numbers you want your formula to constantly reference, as these will be hardcoded into the new functions.
Use INDIRECT and ADDRESS Functions to Lock the Cell Position
This method forces Excel to look at a specific geometric position (exact row and column number) on the sheet, completely ignoring any newly inserted rows.
The ADDRESS function converts a row and column number into a text-based cell reference. The INDIRECT function then converts that text back into a real cell reference. Because the coordinates are entered as numbers rather than linked cells, Excel will not update them when rows shift.
Click on the cell where you want to display the retrieved data.
Type the formula: =INDIRECT(ADDRESS(row_num, column_num, 1, TRUE, "Sheet_Name")).
Replace 'row_num' and 'column_num' with the fixed coordinates. For example, to reference cell A1, use 1 for the row and 1 for the column.
Replace '"Sheet_Name"' with your actual source sheet name, keeping the quotation marks (e.g., "Jotform_Data"). Press Enter to apply.

Use INDIRECT with an A1-Style Text String
A simpler alternative that uses just the INDIRECT function by providing the exact cell address as a text string.
Handle Dynamic Data Easily with WPS Spreadsheet
WPS Spreadsheet fully supports advanced reference functions like INDIRECT and ADDRESS, ensuring your formulas stay intact when integrating with external forms or inserting dynamic data.
- 1. Download and install WPS Office: Get the free WPS Office suite from the official website and install it on your device.
- 2. Open your workbook: Launch WPS Spreadsheet and open your existing data file.
- 3. Apply the fixed reference formula: Type =INDIRECT("SheetName!A1") to permanently lock the cell reference against shifting rows.
- 4. Save in Excel format: Save your document in .xlsx format for seamless sharing and flawless compatibility.

Frequently Asked Questions
Why do my Excel references change automatically when I insert a row?
By default, Excel uses dynamic referencing. When you insert a row above a referenced cell, Excel automatically shifts the reference down (e.g., A1 becomes A2) to maintain the connection to the original piece of data. This breaks workflows that rely on reading data from a fixed coordinate.
Does using absolute references (like $A$1) prevent shifts when rows are inserted?
No. Absolute references (using the dollar sign, like $A$1) only lock the reference when you copy and paste the formula to other cells. If you insert a new row above $A$1, the formula will still automatically update to $A$2.
Can I use the INDEX function to prevent references from changing?
Yes, in some scenarios. A formula like =INDEX(Jotform_Data!A:A, 1) retrieves the first row of column A. Because it references the entire column, it is sometimes more resilient to row insertions, but the INDIRECT method is generally the most foolproof way to lock an exact coordinate.




