Working around the "Close the workbook and INDIRECT breaks

itsrich

Board Regular
Joined
Apr 13, 2009
Messages
69
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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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