VLOOKUP in external files

bmpreston

Board Regular
Joined
Jun 18, 2016
Messages
120
Office Version
  1. 365
Platform
  1. MacOS
So. I have a file (NEW SHEET.XLS) with a column of numbers. Column A. These numbers are referenced (only if they have a corresponding value on one of 11 sheets) as a cell with a value.

These 11 sheets are names A.xls, B.xls, C.xls etc in the same folder on my computer...

I would like to validate (VLOOKUP) that if on sheet a.xls, Column A is the same number on Column A on the NEW SHEET.XLS, we bring a value over from that row.

Sheet A has my static values, I'm looking to formulate my NEW SHEET.XLS as shown below.

Thanks

Please see below Two tables showing two separate xls files:

Sheet A
Column AColumn BColumn CColumn DColumn E
11111
22224
33332
44443

<tbody>
</tbody>

NEW SHEET.xls
Column AValue of D from Sheet AValue of D from Sheet BValue of D from Sheet CValue of D from Sheet D
11111 (VLOOKUP)Not Shown HereNot Shown HereNot Shown Here
0000NOT IN LOOKUPNot Shown HereNot Shown HereNot Shown Here
44443Not Shown HereNot Shown HereNot Shown Here
22224Not Shown HereNot Shown HereNot Shown Here

<tbody>
</tbody>
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
These 11 sheets are names A.xls, B.xls, C.xls etc in the same folder on my computer...
I think you mean files (workbooks), not sheets? (not to be pedantic, but it does make a big difference :) )

If the referenced file/s will be open, you could use INDIRECT to include the variable file name, but that only works on open workbooks.

1 option might be to install the Morefunc add-in which will allow closed WB's to be used. Find it here...
http://www.ashishmathur.com/tag/morefunc/

Another option (ugly, I know), would be to use 1 series of 11 nested IF statements with your vlookups
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,303
Members
449,078
Latest member
nonnakkong

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