Reference another workbook using INDIRECT

bab01824

Board Regular
Joined
Apr 10, 2003
Messages
53
First, I've read similar posts and tried the answers but they're not working in my workbook.

Here is my formula;
=VLOOKUP(TRIM(CONSOLIDATION[@[Host Name]]),INDIRECT("'[INSERT TRUE UP WORKBOOK NAME HERE]"&CONSOLIDATION[@[SITE-FE]]&"'!$B$9:$J$8361"),7,FALSE))

Instead of substituting the referenced workbook "INSERT NEW WORKBOOK NAME HERE" on 600 formulas in the table each month I'd like to paste the referenced workbook name into a cell in this workbook and be done with it. The referenced workbook could be open or not, and the cell containing the workbook name could either be a named range (ie; TRUE_UP_REF) or not.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
OK, so forget the requirement that the reference workbook is closed. And I don't want to include any VBA functions because of the way this workbook is distributed. What's wrong with my formula syntax? It works fine if each formula contains the name of the (open) referenced workbook, but throws an error if I place the name of the referenced workbook into a cell and reference that cell.
 
Upvote 0
As long as your referenced worksheet is open, try =VLOOKUP(TRIM(CONSOLIDATION[@[Host Name]]),INDIRECT("'"&A1&CONSOLIDATION[@[SITE-FE]]&"'!$B$9:$J$8361"),7,FALSE))

Where A1 holds the variable.
 
Upvote 0

Forum statistics

Threads
1,216,086
Messages
6,128,736
Members
449,466
Latest member
Peter Juhnke

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