Forum Discussion
Liam502
Jul 01, 2023Copper Contributor
Use formula to determine which workbook to reference
I have one workbook which must compile data from many smaller workbooks. In column A of the main workbook, I have the names of the smaller workbooks which need to be referenced. I need to dynamic...
- Jul 01, 2023
Liam502 Try tis:
=INDIRECT("["&A2&".xls]Sheet1!B6
Replace Sheet1 with the actual name of the sheet.
And note that the other workbook must be open. Otherwise INDIRECT will not work.
Riny_van_Eekelen
Jul 01, 2023Platinum Contributor
Liam502 Try tis:
=INDIRECT("["&A2&".xls]Sheet1!B6
Replace Sheet1 with the actual name of the sheet.
And note that the other workbook must be open. Otherwise INDIRECT will not work.