Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dominique Feteau
 
Posts: n/a
Default Lookup Value between 2 ranges

I have a table that looks like this.

From To Port#
1 263 1
264 993 1
1100 1368 2
2670 3464 3


I have another table that has random numbers. I need a formula that will
look at the start and end numbers and give me the Port #. For example if
1212 was in e2, i'd want e3 to say "3".

Can anyone help me out?


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default Lookup Value between 2 ranges

If it will be unique, you could use

=(--(A2:A200=start),--(B2:B200<=end),C2:C200)

Your example gives 2 by my calculation.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dominique Feteau" wrote in message
...
I have a table that looks like this.

From To Port#
1 263 1
264 993 1
1100 1368 2
2670 3464 3


I have another table that has random numbers. I need a formula that will
look at the start and end numbers and give me the Port #. For example if
1212 was in e2, i'd want e3 to say "3".

Can anyone help me out?




  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default Lookup Value between 2 ranges

Oops, missed the function, and it should be

=SUMPRODUCT(--(A2:A20<=1212),--(B2:B20=1212),C2:C20)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bob Phillips" wrote in message
...
If it will be unique, you could use

=(--(A2:A200=start),--(B2:B200<=end),C2:C200)

Your example gives 2 by my calculation.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dominique Feteau" wrote in message
...
I have a table that looks like this.

From To Port#
1 263 1
264 993 1
1100 1368 2
2670 3464 3


I have another table that has random numbers. I need a formula that

will
look at the start and end numbers and give me the Port #. For example

if
1212 was in e2, i'd want e3 to say "3".

Can anyone help me out?






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
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
Ranges with in a LOOKUP Elijah Excel Worksheet Functions 2 November 23rd 04 10:40 AM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 04:46 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"