ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using Value of a Cell in the Range Reference in VLOOKUP (https://www.excelbanter.com/excel-worksheet-functions/226471-using-value-cell-range-reference-vlookup.html)

Yangtze

Using Value of a Cell in the Range Reference in VLOOKUP
 
I am trying to use the value of cell to be the reference to a named range in
a VLOOKUP function:

=VLOOKUP(Value,$A$2,A1,false)

in cell A2 would be entered the named range value, i.e., "Data"

I know that I can use references for the lookup and the offset values. Any
ideas? Can I automate VLOOKUP with this much flexibility?

Domenic[_2_]

Using Value of a Cell in the Range Reference in VLOOKUP
 
Use the INDIRECT function. Replace...

$A$2

with

INDIRECT($A$2)

Hope this helps!

http://www.xl-central.com

In article ,
Yangtze wrote:

I am trying to use the value of cell to be the reference to a named range in
a VLOOKUP function:

=VLOOKUP(Value,$A$2,A1,false)

in cell A2 would be entered the named range value, i.e., "Data"

I know that I can use references for the lookup and the offset values. Any
ideas? Can I automate VLOOKUP with this much flexibility?



All times are GMT +1. The time now is 04:48 PM.

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