Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Les Les is offline
external usenet poster
 
Posts: 240
Default Finding Next Highest Value in LookupTable?

Hi,

I want to create a formula that would compare a calculated number (C13) and
compare it against the numbers listed in A1. If C13 doesn't doesn't match any
of the listed numbers then the idea is to settle for the closest but higher
number in A1 and return the corresponding info listed in B1.

So for example, if C13 is calculated as 12.22 then it should return "d2".

A1 B1
10.83 d1
13.82 d2
16.27 d3
18.47 d4

Thanks for any ideas/help.

Les
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Finding Next Highest Value in LookupTable?

First sort your table by column A in descending order, then
=INDEX(B:B,MATCH(C13,A:A,-1))
will give d2.

Regards,
Stefi


€˛Les€¯ ezt Ć*rta:

Hi,

I want to create a formula that would compare a calculated number (C13) and
compare it against the numbers listed in A1. If C13 doesn't doesn't match any
of the listed numbers then the idea is to settle for the closest but higher
number in A1 and return the corresponding info listed in B1.

So for example, if C13 is calculated as 12.22 then it should return "d2".

A1 B1
10.83 d1
13.82 d2
16.27 d3
18.47 d4

Thanks for any ideas/help.

Les

  #3   Report Post  
Posted to microsoft.public.excel.misc
Les Les is offline
external usenet poster
 
Posts: 240
Default Finding Next Highest Value in LookupTable?

Worked like a charm! Thanks, Stefi.

Les

"Stefi" wrote:

First sort your table by column A in descending order, then
=INDEX(B:B,MATCH(C13,A:A,-1))
will give d2.

Regards,
Stefi


€˛Les€¯ ezt Ć*rta:

Hi,

I want to create a formula that would compare a calculated number (C13) and
compare it against the numbers listed in A1. If C13 doesn't doesn't match any
of the listed numbers then the idea is to settle for the closest but higher
number in A1 and return the corresponding info listed in B1.

So for example, if C13 is calculated as 12.22 then it should return "d2".

A1 B1
10.83 d1
13.82 d2
16.27 d3
18.47 d4

Thanks for any ideas/help.

Les

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Finding Next Highest Value in LookupTable?

You are welcome! Thanks for the feedback!
Stefi

€˛Les€¯ ezt Ć*rta:

Worked like a charm! Thanks, Stefi.

Les

"Stefi" wrote:

First sort your table by column A in descending order, then
=INDEX(B:B,MATCH(C13,A:A,-1))
will give d2.

Regards,
Stefi


€˛Les€¯ ezt Ć*rta:

Hi,

I want to create a formula that would compare a calculated number (C13) and
compare it against the numbers listed in A1. If C13 doesn't doesn't match any
of the listed numbers then the idea is to settle for the closest but higher
number in A1 and return the corresponding info listed in B1.

So for example, if C13 is calculated as 12.22 then it should return "d2".

A1 B1
10.83 d1
13.82 d2
16.27 d3
18.47 d4

Thanks for any ideas/help.

Les

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
Finding highest values Hoytmedic Excel Worksheet Functions 3 July 4th 07 08:58 PM
Finding the highest value from two columns of data JaB Excel Worksheet Functions 1 May 2nd 06 01:20 PM
Finding the highest values bob135 Excel Discussion (Misc queries) 7 April 12th 06 08:22 AM
Finding the next highest value in a list mc32 Excel Discussion (Misc queries) 4 February 7th 06 06:39 PM
finding highest dollar amount Jim Gentile Excel Worksheet Functions 2 December 7th 04 05:53 PM


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