How to delete data and avoid reference errors

Brandon10

New Member
Joined
Jan 21, 2009
Messages
6
Hi MrExcel and others,

I have some about 90 rows of data with 7 columns. The raw data is found in the first column and then the other columns contain formulas based on the first column of raw data. So column A contains a bunch of numbers and column b: B1=A1+1, B2=A2+1 etc...

I'm trying to be able to delete data from the first column and shift the cells up, but the columns next to it don't seem to adapt and give me a REF error.

So specifically, cell A1=5 and A2=6. Cell B1=A1+1, and when I delete cell A1 and shift the cells up, A1 becomes A2=6 and B1 should be equal to the new A1+1 so it should be 6+1=7, but I get B1=#REF!+1 instead.

Is there a way around this?...I feel like it is potentially obvious.

Thanks!
Brandon
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Welcome to the board...

Delete Column B along with Column A..

so if you're wanting to delete A5 and A6, Delete row 5 and 6 from BOTH A and B at the same time.

That should work..
 
Upvote 0
as jonmo1 says... you can delete them all together.

Another option may be to use offset instead of a direct reference.

I put the following in B1 and it seemed to work...

=OFFSET(B1,0,-1)+1
 
Upvote 0
Thanks guys,

Deleting the entire row definitely works, and I think offset is the way to go when trying to delete a block.


Brandon
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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