lock cell in formula even when column is inserted?

Bret1

Board Regular
Joined
Jun 14, 2013
Messages
199
HI. Is there a way to lock in a cell in a formula even if a column is inserted? I know "$" locks in cells, but it doesn't work if I insert a new column. If I put "=SUM($E$10)" in A10, then insert column at D, it still changes the formula to "=SUM($F$10)" in cell A10. I want it to stay "=SUM($E$10)". Thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
One trick you can use is the INDIRECT function (because then the range is actually a string, and not a range, so Excel won't change it), i.e.
Excel Formula:
=SUM(INDIRECT("$E$10"))

Note: I hope this is just a simplified example, because I am not sure what the point would be of applying the SUM function to a single cell. SUM is used to add up multiple values.
 
Upvote 0
Solution
One trick you can use is the INDIRECT function (because then the range is actually a string, and not a range, so Excel won't change it), i.e.
Excel Formula:
=SUM(INDIRECT("$E$10"))

Note: I hope this is just a simplified example, because I am not sure what the point would be of applying the SUM function to a single cell. SUM is used to add up multiple values.
Thanks!
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,527
Messages
6,125,334
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top