ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Vlookup Using a Reference as a Table Array (https://www.excelbanter.com/excel-worksheet-functions/228372-vlookup-using-reference-table-array.html)

EmJa

Vlookup Using a Reference as a Table Array
 
I want to use a cells value as my Table Array since the file that I am using
for the lookup varies. For example, I put the Table Array value in column C,
and I want to do a Vlookup in column B. I want something like this in column
B: =VLookup($A2, $C2, 2, False) - where C2 contains a valid table array. How
do I need to reference C2 to make it use the value in C2? Thank you!

Domenic[_2_]

Vlookup Using a Reference as a Table Array
 
In article ,
EmJa wrote:

I want to use a cells value as my Table Array since the file that I am using
for the lookup varies. For example, I put the Table Array value in column C,
and I want to do a Vlookup in column B. I want something like this in column
B: =VLookup($A2, $C2, 2, False) - where C2 contains a valid table array. How
do I need to reference C2 to make it use the value in C2? Thank you!


Try...

=VLOOKUP($A2,INDIRECT($C2),2,FALSE)

--
Domenic
http://www.xl-central.com


All times are GMT +1. The time now is 10:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com