Vlookup from different Excel files... almost there!!

canadian86

Board Regular
Joined
Feb 6, 2011
Messages
53
Here's my formula:

=VLOOKUP(B1,'C:\Corporate\[Store 1234 - 12-10-2011.xls]Ontario'!$C$5:$D$26,2,FALSE)

The ONLY thing that changes in the above formula is the filename: "Store 1234 - 12-10-2011.xls". Instead of manually updating the filename, is there a way to reference it to a list in Column A?

Thanks a lot!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try:

=VLOOKUP(B1,INDIRECT("'C:\Corporate\["&A1&".xls]Ontario'!$C$5:$D$26"),2,FALSE)

Where A1 contains "Store 1234 - 12-10-2011"
 
Upvote 0
Thanks. Unfortunately, that ONLY works when I have the source worksheet open. When I close the worksheet and apply the formula it gives me "#REF!"

Is there any way to make this work without having to open all 50 worksheets?
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

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