Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Variable lookup
Hello,
Im not sure if this double posted because me browser froze... I have excel range names of: tblCA10 tblCA15 tblCA20 tblCA25 tblCA30 tblCA35 I would like to do a lookup like this: =VLOOKUP(C2,tblCAB2,9,FALSE) where tblCAB2 will be determined by the value entered in B2, i.e. if the value in B2 is 15 then tblCA15 will be searched. Thanks |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Variable lookup
=VLOOKUP(C2,tblCAB2,9,FALSE)
where tblCAB2 will be determined by the value entered in B2, Try INDIRECT, ie: =VLOOKUP(C2,INDIRECT(B2),9,FALSE) -- Max Singapore http://savefile.com/projects/236895 Downloads:19,000 Files:362 Subscribers:62 xdemechanik --- |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Variable lookup
#REF! error
"Max" wrote: =VLOOKUP(C2,tblCAB2,9,FALSE) where tblCAB2 will be determined by the value entered in B2, Try INDIRECT, ie: =VLOOKUP(C2,INDIRECT(B2),9,FALSE) -- Max Singapore http://savefile.com/projects/236895 Downloads:19,000 Files:362 Subscribers:62 xdemechanik --- |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Variable lookup
Sorry, missed your last line earlier:
if the value in B2 is 15 then tblCA15 will be searched. Try: =VLOOKUP(C2,INDIRECT("tblCA"&B2),9,FALSE) -- Max Singapore http://savefile.com/projects/236895 Downloads:19,000 Files:362 Subscribers:62 xdemechanik --- |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Variable lookup
"Rod" wrote:
#REF! error Sorry, missed your last line earlier: if the value in B2 is 15 then tblCA15 will be searched. Try: =VLOOKUP(C2,INDIRECT("tblCA"&B2),9,FALSE) -- Max Singapore http://savefile.com/projects/236895 Downloads:19,000 Files:362 Subscribers:62 xdemechanik --- |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Variable lookup
Perfect!
"Max" wrote: Sorry, missed your last line earlier: if the value in B2 is 15 then tblCA15 will be searched. Try: =VLOOKUP(C2,INDIRECT("tblCA"&B2),9,FALSE) -- Max Singapore http://savefile.com/projects/236895 Downloads:19,000 Files:362 Subscribers:62 xdemechanik --- |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Variable lookup
Welcome
-- Max Singapore http://savefile.com/projects/236895 Downloads:19,000 Files:362 Subscribers:62 xdemechanik --- "Rod" wrote Perfect! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Lookup using variable name | Excel Worksheet Functions | |||
can't lookup a value to the left of my variable | Excel Worksheet Functions | |||
3 variable lookup | Excel Worksheet Functions | |||
Variable Lookup/Double Lookup | Excel Worksheet Functions | |||
How can I set a variable for which column to lookup? | Excel Discussion (Misc queries) |