Working around the "Close the workbook and INDIRECT breaks

itsrich

Board Regular
Joined
Apr 13, 2009
Messages
73
Office Version
  1. 365
Platform
  1. Windows
INDIRECT is great within the same workbook but use it to pull data from another workbook and all the formulas break.
  • =XLOOKUP(B3,INDIRECT("'["&$L$1&".xlsm]"&L3&"'!$D:$D"),INDIRECT("'["&$L$1&".xlsm]"&L3&"'!$F:$F"),"Obsolete?")
  • L1 = File Name
  • L3 = Tab Name
How does one get around this? I need presitant values across workbooks.

I can use XLOOKUP without INDIRECT, but I am back to building a unique formula for every tab.

Grrrr.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
The Indirect function simply doesn't work with closed workbooks.
 
Upvote 0
Solution
I don't like that answer. It reminds me of other Microsoft Help I have found... Technically Correct, TOTALLY useless.

No disparagement to Fluff, just Microsoft.

Fluff, you helped me build a beautiful formula that I can use unless I have 7 workbooks open concurrently. My little laptop can not keep up!

Again, TY Fluff!
 
Upvote 0
To be clear, the only workaround is to use XLOOKUP without INDIRECT.

Is there any other formula that allows such easy construction of a formula?

Job security!
 
Upvote 0
If you want to put the file name & sheet name in a couple of cells & refer to them, indirect is the only option.
 
Upvote 1
While I have spun my wheels on this one, I have learned a great deal. TY to all!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 1

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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