Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I need to lookup a value in a table, using the first 2 columns as a range,
then return the approp value from the 3rd column. For example lookup 8, as it falls between 7 and 9, I want to return e. 18 would give me m as would 25. col1 col2 col3 1 6 q 7 9 e 11 25 m |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Assuming the source lookup table is in A1:C3,
lookup value (eg: 8) in E1 Place in F1, array-enter (press Ctrl+Shift+Enter to confirm the formula): =INDEX(C1:C3,MATCH(1,(E1=A1:A3)*(E1<=B1:B3),0)) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "saintsalive" wrote: I need to lookup a value in a table, using the first 2 columns as a range, then return the approp value from the 3rd column. For example lookup 8, as it falls between 7 and 9, I want to return e. 18 would give me m as would 25. col1 col2 col3 1 6 q 7 9 e 11 25 m |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One way:
=INDIRECT("C" & SUMPRODUCT(--(A1:A3<=D1),--(B1:B3=D1),ROW(C1:C3))) D1 contains the value to look up. Change as needed. HTH, Paul -- "saintsalive" wrote in message ... I need to lookup a value in a table, using the first 2 columns as a range, then return the approp value from the 3rd column. For example lookup 8, as it falls between 7 and 9, I want to return e. 18 would give me m as would 25. col1 col2 col3 1 6 q 7 9 e 11 25 m |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanx
"Max" wrote: Assuming the source lookup table is in A1:C3, lookup value (eg: 8) in E1 Place in F1, array-enter (press Ctrl+Shift+Enter to confirm the formula): =INDEX(C1:C3,MATCH(1,(E1=A1:A3)*(E1<=B1:B3),0)) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "saintsalive" wrote: I need to lookup a value in a table, using the first 2 columns as a range, then return the approp value from the 3rd column. For example lookup 8, as it falls between 7 and 9, I want to return e. 18 would give me m as would 25. col1 col2 col3 1 6 q 7 9 e 11 25 m |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
welcome
-- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "saintsalive" wrote in message ... Thanx |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
table lookup | Excel Worksheet Functions | |||
Pivot table doing a lookup without using the lookup function? | Excel Discussion (Misc queries) | |||
Help with lookup table | Excel Worksheet Functions | |||
lookup or table, not sure what to do | Excel Worksheet Functions | |||
Lookup Table | Excel Worksheet Functions |