ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can VLookup refer to a cell with a range name? (https://www.excelbanter.com/excel-programming/275307-re-can-vlookup-refer-cell-range-name.html)

JohnI

Can VLookup refer to a cell with a range name?
 
Kent,

try =VLOOKUP(C10,INDIRECT(B11),2)

regards,

JohnI

"Kent" wrote in message
...
How can I get Excel to use the text in the cell (B11) as a
named range rather than having to enter the same info in
the formula? If you change the entry in VLookup from B11
to CAP (a named array) I get the desired result. I've used
every trick I can think of except VBA to spoof Excel into
accepting it but no deal. I'm trying to avoid VBA here
because I won't be able to copy the formulas and have the
references change.

B11 C11
--------- ----------
CAP =VLOOKUP(C10,B11,2)





All times are GMT +1. The time now is 03:12 PM.

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