vlookup arrray from closed workbook

RolanDoobies

Board Regular
Joined
Aug 28, 2002
Messages
99
Is it possible to do an array vlookup from a closed workbook? Do I just write the formula pointing to the closed book?
 

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
The following works with a closed WB.

=VLOOKUP(B18,'C:\My Documents\Temp\Demo.xls'!MyRange,2,FALSE)

where:
B18 in the open WB holds the item to lookup in the closed WB.
Demo.xls is the closed WB and is located at C:\My Documents\Temp\
MyRange refers to $A$1:$B$10 in Demo.xls.

Or, you can reference the range directly:

=VLOOKUP(B18,'C:\My Documents\Temp\[Demo.xls]Sheet1'!$A$1:$B$10,2,FALSE).

Alternative formula (also works with a closed WB):

=INDEX('C:\MyDocuments\Temp\Demo.xls'!MyRange,MATCH(B18,'C:\Documents\Temp\Demo.xls'!Rng,0),2)

Where the named range “Rng” refers to A1:A10 in Demo.xls.


HTH


Mike
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,199
Latest member
Riley Johnson

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