Indirect Function Causing #Ref! Error

Jak7217

New Member
Joined
Jan 11, 2019
Messages
31
Office Version
  1. 365
Platform
  1. Windows
The following formula pulls data from the specified workbook, even when the workbook isn't open:
='C:\Users\Username\Documents\Report\[Test Workbook - 6-11-2019.xlsx]Sheet1'!A1

I added an indirect reference to the formula and it pulls data from the workbook... the only problem is said workbook now has to be open in order to avoid the #Ref ! error. Any ideas at how I can get this to pull automatically without needing to open workbooks?

=INDIRECT("'C:\Users\Username\Documents\Report\[Test Workbook - "&D4&".xlsx]Sheet1'!A1") (where D4 is the date 6-11-2019)

Thanks!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
G'day Jak,

From Excel Help:
[h=2]Example – Referencing a closed workbook with INDIRECT[/h]In the following example, an INDIRECT function is attempting to reference a workbook that’s closed, causing a #REF! error.

Solution
Open the referenced workbook. You'll encounter the same error if you reference a closed workbook with a dynamic array function.

So it looks like it can't be done.

shane
 
Upvote 0

Forum statistics

Threads
1,213,513
Messages
6,114,072
Members
448,546
Latest member
KH Consulting

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