Dynamic VLOOKUP table_array value

jbodell

Board Regular
Joined
Jan 5, 2012
Messages
59
Hello,

Here's my situation- I've got a VLOOKUP set up in column D which references the (row based) value in Column A as the lookup_value, where Columns B and C are the table_array (returning C exactly) e.g. in D1:

=vlookup(A1,B:C,2,false). This works as it should.

Column C contains the text string ="'[Workbook.xlsm]Worksheet'!A:Y" which is intended to be substituted as a table_array for a separate VLOOKUP in E which is:

=vlookup(A1,text(D1),25,false). This breaks. I have included the full file path and checked it enough to make me cross-eyed. When I manually insert the string, the VLOOKUP returns a value successfully, but in trying to add the layer of sophistication it refuses to function.

I've tried variations of text(), value() and separated the file path/name with "A:Y" tacked on by an &.

Has anyone smarter than me successfully pulled this off? Or can you point me in the right direction? I have a lot to learn when it comes to data-linking.

Thank you,

Jonathan
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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