Lock a formula in a cell even if the data cell is deleted

joebell30

New Member
Joined
Feb 15, 2020
Messages
6
Office Version
  1. 2010
Platform
  1. Windows
Good Morning,

I'll give you a quick example of what I need to do. This is the only part of my spreadsheet that I cannot figure out. In row 8, I have consecutive hard numbers from 1 to 100, starting in cell C8 ... C8 has 1, D8 has 2, E8 has 3 and on until 100. In Cell A20, I have a simple formula of =C8 and 1 is the result in A20. I want to delete the entire column C and then the digit 2 (which was in D8) is now in C8. Now, I now want 2 to appear in A20 but I am getting an invalid cell reference #REF! because I moved a cell. Is there anyway around this so the formula =C8 always remains in A20? I will continue to delete columns and save the results as a new tab, so A20 will be a different value on each tab. Thanks for your help!
 

Some videos you may like

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
52,934
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=INDEX(8:8,3)
 

JimM

Well-known Member
Joined
Nov 11, 2003
Messages
686
Why not just enter the the first hard number into C8 each day and then have D8, E8 etc being a formula to add 1 to the cell to it's left

C8 enter 2
D8 =C8+1
E8 =D8+1
etc
 

joebell30

New Member
Joined
Feb 15, 2020
Messages
6
Office Version
  1. 2010
Platform
  1. Windows
Why not just enter the the first hard number into C8 each day and then have D8, E8 etc being a formula to add 1 to the cell to it's left

C8 enter 2
D8 =C8+1
E8 =D8+1
etc
JimM, Such a simple answer that worked, thank you!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
52,934
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,518
Messages
5,596,631
Members
414,082
Latest member
sasmita

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
Top