INDIRECT Not Working for This

eashtm01

New Member
Joined
Jun 18, 2022
Messages
19
Office Version
  1. 2016
Platform
  1. Windows
Hello Friends,

I feel pretty stupid, but I can't get =INDIRECT to make the following concatenated string work as a formula. Any suggestions? Thanks.

=CONCATENATE("='["&A4&"-"&$C$2&".xlsx]"&LEFT($A$2,3)&"'!$I$3")
 
You need to surround the range reference you are building with INDIRECT.
Seeing as how I have no idea what you are building looks like because you have not shown us any data, or what the range you are builidng should look like, maybe something like this:
Excel Formula:
=CONCATENATE(INDIRECT("'["&A4&"-"&$C$2&".xlsx]"&LEFT($A$2,3)&"'!$I$3"))

Also note, that INDIRECT will NOT work on closed workbooks. Your other file must be opened at the time in order for this to work.
 
Upvote 0
I suspect it should be as simple as:
Excel Formula:
=INDIRECT("='["&A4&"-"&$C$2&".xlsx]"&LEFT($A$2,3)&"'!$I$3")
 
Upvote 0
You need to surround the range reference you are building with INDIRECT.
Seeing as how I have no idea what you are building looks like because you have not shown us any data, or what the range you are builidng should look like, maybe something like this:
Excel Formula:
=CONCATENATE(INDIRECT("'["&A4&"-"&$C$2&".xlsx]"&LEFT($A$2,3)&"'!$I$3"))

Also note, that INDIRECT will NOT work on closed workbooks. Your other file must be opened at the time in order for this to work.
Joe, thank you for the information. It appears that my problem was the other workbook was not opened. Do you know of a way to accomplish this with the other workbooks closed? I really don't want to have so many files opened at the same time. Thanks again. Tom
 
Upvote 0
No, I do not know of any way to dynamically build the range reference and pull the values from a closed workbook using just formulas.
You may need to take a VBA approach, where you can have the VBA code temporarily open the file to get the results you want/need, and then close the file.
 
Upvote 0

Forum statistics

Threads
1,226,795
Messages
6,193,045
Members
453,772
Latest member
aastupin

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