Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default lookup a value in a table

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   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default lookup a value in a table

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default lookup a value in a table

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default lookup a value in a table

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   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default lookup a value in a table

welcome
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"saintsalive" wrote in message
...
Thanx



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
table lookup Jhill Excel Worksheet Functions 3 September 29th 06 08:17 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
Help with lookup table Scott Frickman Excel Worksheet Functions 1 May 18th 05 01:27 AM
lookup or table, not sure what to do [email protected] Excel Worksheet Functions 2 February 17th 05 09:36 PM
Lookup Table Ben Excel Worksheet Functions 7 November 30th 04 07:05 PM


All times are GMT +1. The time now is 08:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"