Fix Excel Formulas Changing Incorrectly After Inserting a Column
Question details
The user needs to prevent or correct Excel formulas that automatically change to the wrong cell references when a new column is inserted.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Modifying a spreadsheet's structure by inserting a new column near existing formula calculations.
- Observed behavior
- Instead of keeping the intended formula logic (e.g., E6-D6), Excel alters the cell references incorrectly, causing formula errors, especially within complex functions like IFS.
Before adding new columns to your spreadsheet, double-click the cells containing important formulas to review their current references and determine if they should be locked.
Use Absolute References to Lock Formula Cells
Convert your relative cell references to absolute references by adding dollar signs ($) so they do not shift when new columns are inserted.
By default, Excel uses relative cell references (like D6). When you insert a column, Excel tries to automatically adjust the formula based on the new layout. If you want the formula to strictly point to column D regardless of insertions, you must use an absolute reference (like $D$6 or $D6).
Click on the cell containing the formula you want to protect (e.g., the cell with E6-D6).
Click into the formula bar at the top of the screen or double-click the cell to enter Edit mode.
Place your text cursor inside the cell reference (e.g., D6) and press the F4 key on your keyboard. This will add dollar signs (changing it to $D$6), locking both the column and row.
Press Enter to save the formula. You can now safely insert a new column without the locked reference shifting.

Manually Correct the Shifted Formula
If you have already inserted the column and the formula has broken, you can manually reset the references to their intended targets.
Manage Complex Formulas Easily with WPS Spreadsheet
WPS Spreadsheet provides a highly intuitive interface for managing complex data calculations. With robust support for formula management, quick F4 absolute reference toggling, and smart structural adjustments, you can modify your worksheets without breaking your logic.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your existing workbook containing the formulas.
- 2. Highlight the formula components: Click the cell with your formula, then click inside the formula bar to highlight the cell references.
- 3. Lock the references: Highlight the reference you want to protect and press F4 to add dollar signs (e.g., $D$6).
- 4. Insert the new column: Right-click the column header and select 'Insert Column'. Your locked formulas will remain perfectly intact.

Frequently Asked Questions
What is the difference between relative and absolute references?
A relative reference (like A1) changes when a formula is copied or when the spreadsheet structure changes. An absolute reference (like $A$1) is locked by dollar signs, meaning it will always point to that exact cell regardless of where the formula moves or if new columns are inserted.
Why did my IFS formula break when I inserted a column?
Complex formulas like IFS often have interdependent logical tests. When a column is inserted, Excel attempts to guess how the ranges should shift. If the logic is non-standard, Excel might adjust the references incorrectly, requiring you to use absolute references ($) beforehand to protect the specific conditions.
How can I quickly lock a cell reference without typing dollar signs?
You can use the F4 keyboard shortcut. Click on or highlight the cell reference (e.g., C4) in your formula bar, then press F4. Excel or WPS Spreadsheet will automatically insert the dollar signs to make it $C$4.




