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
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[/TR]
[TR]
[TD]1111[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2222[/TD]
[TD][/TD]
[TD][/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3333[/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4444[/TD]
[TD][/TD]
[TD][/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

NEW SHEET.xls
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Value of D from Sheet A[/TD]
[TD]Value of D from Sheet B[/TD]
[TD]Value of D from Sheet C[/TD]
[TD]Value of D from Sheet D[/TD]
[/TR]
[TR]
[TD]1111[/TD]
[TD]1 (VLOOKUP)[/TD]
[TD]Not Shown Here[/TD]
[TD]Not Shown Here[/TD]
[TD]Not Shown Here[/TD]
[/TR]
[TR]
[TD]0000[/TD]
[TD]NOT IN LOOKUP[/TD]
[TD]Not Shown Here[/TD]
[TD]Not Shown Here[/TD]
[TD]Not Shown Here[/TD]
[/TR]
[TR]
[TD]4444[/TD]
[TD]3[/TD]
[TD]Not Shown Here[/TD]
[TD]Not Shown Here[/TD]
[TD]Not Shown Here[/TD]
[/TR]
[TR]
[TD]2222[/TD]
[TD]4[/TD]
[TD]Not Shown Here[/TD]
[TD]Not Shown Here[/TD]
[TD]Not Shown Here[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
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,224,748
Messages
6,180,721
Members
452,995
Latest member
isldboy

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