Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Oscar
 
Posts: n/a
Default Location of n-th highest value in the range

How can I get location of n-th highest (parameter) value in the range of
values. In case of equal values I want first occurance to be higher ranked.

Thanks, Oscar.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Miguel Zapico
 
Posts: n/a
Default Location of n-th highest value in the range

You may try the following:
=MATCH(LARGE(A1:A50,5),A1:A50)
This will find the 5th largest number in the A1:A50 range and return its
position. You may substitute the parameters to fit you case.

Hope this helps,
Miguel.

"Oscar" wrote:

How can I get location of n-th highest (parameter) value in the range of
values. In case of equal values I want first occurance to be higher ranked.

Thanks, Oscar.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Oscar
 
Posts: n/a
Default Location of n-th highest value in the range

Since values are not set in ascending or descending order this doesn't work.
But even when if I rearange function to =MATCH(LARGE(A1:A50,5),A1:A50,0) it
still doesn't work as I would like it to. Suppose values in cells a
A1: 6
A2: 4
A3: 4
A5: 3
A6: 5

I want 4 in cell A2 to be ranked as 3rd highest value and 4 in cell A3 as
4th higest.

Oscar.

"Miguel Zapico" je napisal:

You may try the following:
=MATCH(LARGE(A1:A50,5),A1:A50)
This will find the 5th largest number in the A1:A50 range and return its
position. You may substitute the parameters to fit you case.

Hope this helps,
Miguel.

"Oscar" wrote:

How can I get location of n-th highest (parameter) value in the range of
values. In case of equal values I want first occurance to be higher ranked.

Thanks, Oscar.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Miguel Zapico
 
Posts: n/a
Default Location of n-th highest value in the range

You are right, I was focusing on location, not in rank.
For ranking, I cannot think on a simple formula, as RANK gives the same rank
to similar numbers, but I can think on a workaround using an additional
column.
If you are using integers, or your know the precision of your numbers, you
may add a column beside the data with something like:
=A1 - ROW()*0.0001
The precision depends on the case, the idea is to have a list of different
numbers. Over that list you can use the RANK formula:
=RANK(B1,$B1:$B50)
And then hide the B column, so your original numbers will be side by side
with the ranking.

Surely there are better ways to achieve this, hope this one helps,
Miguel.

"Oscar" wrote:

Since values are not set in ascending or descending order this doesn't work.
But even when if I rearange function to =MATCH(LARGE(A1:A50,5),A1:A50,0) it
still doesn't work as I would like it to. Suppose values in cells a
A1: 6
A2: 4
A3: 4
A5: 3
A6: 5

I want 4 in cell A2 to be ranked as 3rd highest value and 4 in cell A3 as
4th higest.

Oscar.

"Miguel Zapico" je napisal:

You may try the following:
=MATCH(LARGE(A1:A50,5),A1:A50)
This will find the 5th largest number in the A1:A50 range and return its
position. You may substitute the parameters to fit you case.

Hope this helps,
Miguel.

"Oscar" wrote:

How can I get location of n-th highest (parameter) value in the range of
values. In case of equal values I want first occurance to be higher ranked.

Thanks, Oscar.

  #5   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Location of n-th highest value in the range

Hello Oscar,

Enter in cell B1:
=COUNTIF($A$1:$A$5,"" & A1) + COUNTIF($A$1:A1,A1)
and copy this down to B5.

Works with numbers and strings.

HTH,
Bernd



  #6   Report Post  
Posted to microsoft.public.excel.misc
Oscar
 
Posts: n/a
Default Location of n-th highest value in the range

Thanks Bernd and Miguel. I already use solution similar to Bernd's, but would
prefer something with no additional column needed.

Oscar.

" je napisal:

Hello Oscar,

Enter in cell B1:
=COUNTIF($A$1:$A$5,"" & A1) + COUNTIF($A$1:A1,A1)
and copy this down to B5.

Works with numbers and strings.

HTH,
Bernd


  #7   Report Post  
Posted to microsoft.public.excel.misc
Oscar
 
Posts: n/a
Default Location of n-th highest value in the range

This works:
{=MATCH(LARGE(A1:A50-ROW(A1:A50)/1000;n);A1:A50-ROW(A1:A50)/1000;0)}

Replace 1000 with high enough number so that row number / 1000 does not
efect ranking of "original values" in A1:A50.

Oscar

"Oscar" je napisal:

How can I get location of n-th highest (parameter) value in the range of
values. In case of equal values I want first occurance to be higher ranked.

Thanks, Oscar.

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
FORMULA at Source range (in Data-validation-List) gives wrong re Eddy Stan Excel Worksheet Functions 6 March 17th 06 07:19 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
How do I return the highest value in a range of cells pjs83 Excel Worksheet Functions 5 July 6th 05 09:25 PM
How do I add only the highest three numbers in a range of data? emac_mommy Excel Worksheet Functions 4 January 9th 05 09:40 AM


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

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

About Us

"It's about Microsoft Excel"