How to avoid #REF for formulas referencing table that is updated when file is opened

dpnab

New Member
Joined
Apr 12, 2022
Messages
35
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a file that has 2 sheets. The first is a table that is connected to other data via ODBC and is updated whenever the file opens (let's just call it a daily ship log). So if you open it at the end of the day, there are lots of entries in the table. If you open it first thing, it shows nothing, since nothing has shipped yet.

The second sheet has several columns with formulas that reference data in the first sheet, ie =Sheet1!A1. The problem is if there is no data, then the formula replaces A1 with #REF.

Is there anyway to "lock" the formula?

Or do I "link" the cell to the table?

Thanks!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hello,

I have a file that has 2 sheets. The first is a table that is connected to other data via ODBC and is updated whenever the file opens (let's just call it a daily ship log). So if you open it at the end of the day, there are lots of entries in the table. If you open it first thing, it shows nothing, since nothing has shipped yet.

The second sheet has several columns with formulas that reference data in the first sheet, ie =Sheet1!A1. The problem is if there is no data, then the formula replaces A1 with #REF.

Is there anyway to "lock" the formula?

Or do I "link" the cell to the table?

Thanks!
The IFERROR Funciton can be used to hide those errors...
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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