Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rod Rod is offline
external usenet poster
 
Posts: 108
Default Lookup less than a number

Hello.

I would like to be able to do the equvivalent of:
look up a number in range MaxTermAvail and if the number is < the left value
then bring back the next col; something like

Vlookup (B2, if B7<the left value(MaxTermAvail), 2, false).

So, if B2=61 then the value returned should be 15, when
MaxTermAvail=
41 35
46 30
61 20
66 15
71 10

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lookup less than a number

Hmmm...

Question:

What if B2 is <41 or is =71?

--
Biff
Microsoft Excel MVP


"Rod" wrote in message
...
Hello.

I would like to be able to do the equvivalent of:
look up a number in range MaxTermAvail and if the number is < the left
value
then bring back the next col; something like

Vlookup (B2, if B7<the left value(MaxTermAvail), 2, false).

So, if B2=61 then the value returned should be 15, when
MaxTermAvail=
41 35
46 30
61 20
66 15
71 10

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rod Rod is offline
external usenet poster
 
Posts: 108
Default Lookup less than a number

The left Col is the clients age. So, if <41 the the returned value should be
35; if =71 then 0.

"T. Valko" wrote:

Hmmm...

Question:

What if B2 is <41 or is =71?

--
Biff
Microsoft Excel MVP


"Rod" wrote in message
...
Hello.

I would like to be able to do the equvivalent of:
look up a number in range MaxTermAvail and if the number is < the left
value
then bring back the next col; something like

Vlookup (B2, if B7<the left value(MaxTermAvail), 2, false).

So, if B2=61 then the value returned should be 15, when
MaxTermAvail=
41 35
46 30
61 20
66 15
71 10

Thanks.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lookup less than a number

Assume your table is in the range G2:H6.

Try this:

=IF(B2<41,35,IF(B2=71,0,INDEX(H2:H6,MATCH(B2,G2:G 6)+1)))

--
Biff
Microsoft Excel MVP


"Rod" wrote in message
...
The left Col is the clients age. So, if <41 the the returned value should
be
35; if =71 then 0.

"T. Valko" wrote:

Hmmm...

Question:

What if B2 is <41 or is =71?

--
Biff
Microsoft Excel MVP


"Rod" wrote in message
...
Hello.

I would like to be able to do the equvivalent of:
look up a number in range MaxTermAvail and if the number is < the left
value
then bring back the next col; something like

Vlookup (B2, if B7<the left value(MaxTermAvail), 2, false).

So, if B2=61 then the value returned should be 15, when
MaxTermAvail=
41 35
46 30
61 20
66 15
71 10

Thanks.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Lookup less than a number

-10000 35
41 35
46 30
61 20
66 15
71 10
10000 0

=INDEX(D1:D7,MATCH(B2,C1:C7)+1)



"Rod" wrote:

Hello.

I would like to be able to do the equvivalent of:
look up a number in range MaxTermAvail and if the number is < the left value
then bring back the next col; something like

Vlookup (B2, if B7<the left value(MaxTermAvail), 2, false).

So, if B2=61 then the value returned should be 15, when
MaxTermAvail=
41 35
46 30
61 20
66 15
71 10

Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rod Rod is offline
external usenet poster
 
Posts: 108
Default Lookup less than a number

Perfect! Thanks!

"T. Valko" wrote:

Assume your table is in the range G2:H6.

Try this:

=IF(B2<41,35,IF(B2=71,0,INDEX(H2:H6,MATCH(B2,G2:G 6)+1)))

--
Biff
Microsoft Excel MVP


"Rod" wrote in message
...
The left Col is the clients age. So, if <41 the the returned value should
be
35; if =71 then 0.

"T. Valko" wrote:

Hmmm...

Question:

What if B2 is <41 or is =71?

--
Biff
Microsoft Excel MVP


"Rod" wrote in message
...
Hello.

I would like to be able to do the equvivalent of:
look up a number in range MaxTermAvail and if the number is < the left
value
then bring back the next col; something like

Vlookup (B2, if B7<the left value(MaxTermAvail), 2, false).

So, if B2=61 then the value returned should be 15, when
MaxTermAvail=
41 35
46 30
61 20
66 15
71 10

Thanks.






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lookup less than a number

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Rod" wrote in message
...
Perfect! Thanks!

"T. Valko" wrote:

Assume your table is in the range G2:H6.

Try this:

=IF(B2<41,35,IF(B2=71,0,INDEX(H2:H6,MATCH(B2,G2:G 6)+1)))

--
Biff
Microsoft Excel MVP


"Rod" wrote in message
...
The left Col is the clients age. So, if <41 the the returned value
should
be
35; if =71 then 0.

"T. Valko" wrote:

Hmmm...

Question:

What if B2 is <41 or is =71?

--
Biff
Microsoft Excel MVP


"Rod" wrote in message
...
Hello.

I would like to be able to do the equvivalent of:
look up a number in range MaxTermAvail and if the number is < the
left
value
then bring back the next col; something like

Vlookup (B2, if B7<the left value(MaxTermAvail), 2, false).

So, if B2=61 then the value returned should be 15, when
MaxTermAvail=
41 35
46 30
61 20
66 15
71 10

Thanks.








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
number lookup wcthrill Excel Worksheet Functions 1 April 4th 06 07:52 PM
lookup returns row number-why? Alan P Excel Worksheet Functions 4 September 22nd 05 11:23 AM
lookup based on a row number chrisrowe_cr Excel Worksheet Functions 2 September 15th 05 02:18 PM
Part Number Lookup Marshall2 Excel Worksheet Functions 2 July 11th 05 08:58 AM
Number Lookup in Matrix Rod Excel Worksheet Functions 12 July 2nd 05 11:24 PM


All times are GMT +1. The time now is 04:19 PM.

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"