Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / March 2008

Tip: Looking for answers? Try searching our database.

Change lookup range depending on result of 2nd lookup

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sab_ya - 07 Mar 2008 04:12 GMT
Hi,

am trying to vary the name of the lookup range depending o the result
of a 2nd lookup --
NYC            =vlookup(A1,range1,4,0)
LA               =vlookup(B1,range2,4,0)
.
.
.
SFO            =vlookup(C1,rangeXXX,4,0)

Rather than having to manually edit the ranges I would prefer excel to
lookup the ranges by something like

NYC          =vlookup(A1,vlookup(A1,RangeTable,2,0),4,0)

RangeTable:

NYC    range1
LA       range2
SFO    rangeXXX

Have tried to nest two vlookups as above but am having no luck

Any suggestions?

Thanks,
sab_ya
Tyro - 07 Mar 2008 04:24 GMT
Of course not. You're saying lookup a value in a single value returned from
the interior vlookup and get the result from the 4th column of the single
value. I'm not proposing an answer. Just presenting this to you to think
about..

Tyro

> Hi,
>
[quoted text clipped - 24 lines]
> Thanks,
> sab_ya
Henn Sarv - 07 Mar 2008 07:29 GMT
You can play with functions like

Indirect
Offset

for example - the 1st lookup gives You name of range to use in 2nd lookup
and the name is converted to range using Indirect

check Help for closer hints

Henn

> Hi,
>
[quoted text clipped - 24 lines]
> Thanks,
> sab_ya
sab_ya - 11 Mar 2008 00:55 GMT
Thanks Henn, INDIRECT does the job!

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.