Vlookup depending on cell value

p9j123

Active Member
Joined
Apr 15, 2014
Messages
288
Office Version
  1. 2013
Platform
  1. Windows
Need help on the following scenarion

I have a masterfile that looks like this.

[TABLE="class: grid, width: 285, align: left"]
<colgroup><col><col span="2"><col></colgroup><tbody>[TR]
[TD]Task ID[/TD]
[TD]Team[/TD]
[TD]Ops[/TD]
[TD]Status[/TD]
[/TR]
[TR]
[TD="align: right"]123[/TD]
[TD]A[/TD]
[TD]Michael[/TD]
[TD]Completed1[/TD]
[/TR]
[TR]
[TD="align: right"]456[/TD]
[TD]C[/TD]
[TD]Jude[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]256[/TD]
[TD]F[/TD]
[TD]Michael[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]933[/TD]
[TD]G[/TD]
[TD]John[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]858[/TD]
[TD]J[/TD]
[TD]Jude[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]451[/TD]
[TD]I[/TD]
[TD]Michael[/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]














Column D has the following formula

=VLOOKUP(A2,'C:\Source\[Michael.xlsx]Sheet1'!$A:$D,4,FALSE)

I have multiple files on C:\Source that correspond to the names on Column C.

The formula should be dependent on value on column C, on the example above D2 lookup for the value on Michael.xlsx because C2 is Michael.

Note: Source File are closed (im not sure if this info matters.)
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
All referenced files must be open in order to read their values. The values will appear as last seen until the workbooks are opened again.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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