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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

MrKowz

Well-known Member
Joined
Jun 30, 2008
Messages
6,653
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
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

canadian86

Board Regular
Joined
Feb 6, 2011
Messages
53
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,191,608
Messages
5,987,642
Members
440,104
Latest member
thigarette

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
Top