Formula Help appears #ref

L

Legacy 330376

Guest
Hi All,

I am trying to avoid #ref appearing when I delete a row from the source spreadsheet. Does anyone have a solution. I want to avoid using Indirect function as the source spreadsheet needs to be open, for it to work.

Any ideas, would be great!!

The formulas are below, that I am trying

Code:
=INDEX([MS.xlsm]C!A3,ROWS(A3:A3)):INDEX([MS.xlsm]C!A3,COUNTA([MS.xlsm]C!A3))

Code:
=OFFSET(MS.xlsm]C!A3,0,0)
 
Hi Jason,

Yes- I looked into the morefunc add-in function, however it will be risky to use in my project as multiple users will be using different excel instances.

Good news is your index formula worked. I tested it by deleting a row from the source spreadsheet and it shifts the cell up from the destination spreadsheet.
Fantastic!

Code:
=INDEX([MS.xlsm]C!$A:$X,ROW(A1),Column(A1))
 
Upvote 0
Hi Glenn- Unfortunately Jason is right. The named ranges is causing #ref.

Hi Jason- Thank you for your reply aswell. With the indirect function, I have tried this previously and when the source worksheet is closed it causes #ref to appear on the destination workbook. Have you come across this issue, or know a way to get round it.

I will try the alternative index formula you have provided. Will get back to you.

No, named ranges do not cause problems if you follow my suggestion of naming entire columns.
 
Upvote 0
Hi Glenn-

I tried doing it, will have a look again later as an alternative option.

Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,226,797
Messages
6,193,051
Members
453,772
Latest member
aastupin

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