Help on Indirect

p9j123

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


I am trying to use the below formula but I cant make it work.

=VLOOKUP(A2,INDIRECT("'C:\Source\["&C2&".xlsx]Sheet1"&"'!"&"$A:$D"),4,0)

I have a masterfile that looks like this.

[TABLE="class: cms_table_grid, width: 285, align: left"]
<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

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. So D3 should look for Jude.xlsx and so on

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

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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