View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Can VLookup refer to a cell with a range name?

=VLOOKUP(C10,Indirect(B11),2)

--
Regards,
Tom Ogilvy

"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)