Formula #REF issue

jcaptchaos2

Well-known Member
Joined
Sep 24, 2002
Messages
1,032
Office Version
  1. 365
Platform
  1. Windows
Is there a way to get a formula that looks at another worksheet to stick even if a row on the other worksheet that the formula pulls from is deleted? For example I have a worksheet with this formula on it, the data on the "Shift 1" worksheet is a table that is pulled from an access database so when someone switches shifts it is changed in that access database. When the table is refreshed that employee is no longer there the formula returens the #REF error. If it just left the formula there it would be fine. The only way I can think of getting around this is to create a macro that places all the correct formulas back in the spread sheet.

Code:
='Shift 1'!B3
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Try:

=INDIRECT("'Shift 1'!B3")

I don't like to use INDIRECT when I don't have to, because it is a volatile formula (evaluates EVERY time something calculates), but it is needed here.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

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