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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
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,224,551
Messages
6,179,472
Members
452,915
Latest member
hannnahheileen

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