LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Ranking by MS-Excel Function

Dear Sir,

Ranking by MS-Excel Function

There is an array of figures shown as follows:
{1;1;1;4;4;4;8;8;8;8;8;8;13;13;13;16;16;16;20;20;2 0;22;22;25;25;27;27;27;27;30;30;30;30}

Say, the array is located at A1:A33.
Admittedly, the array has been subject to Data Sort.
Hopefully, it will well behave and offer clarity.
________________________________________
Would like to rank the figures such that,
1 (by virtue of the leading appearance) will be ranked 1 (quite obviously).
4 (where there are 3 instances) will (all) be ranked 2.
However, by applying Excel function, Rank (4, Array) gives 4.
Reason being that, duplication of the 1's at the forefront has given rise to,
Rank (1, 2nd appearance) yields 2.
Rank (1, 3rd appearance) yields 3.
________________________________________
Further requirement is to rank (8's) as 3; rank (13's) as 4 and rank (16's) as 5.
Last but not least, rank (30's) should be 10.
________________________________________
Please devise a formula to rank each element of the given array such that
the figures will be evaluated individually as per requirement (given above).

What if, the array is then rearranged with figures in any other order,
will the formula hold true still?

Please share your experience and results. Regards.
________________________________________
 
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
Ranking function doverfield Excel Worksheet Functions 6 October 7th 10 12:04 PM
Ranking without preset Excel function. a.riva@UCL Excel Programming 10 October 26th 07 03:16 PM
Ranking without preset Excel function. a.riva@UCL Excel Worksheet Functions 0 October 16th 07 05:53 PM
Ranking Function casdaq Excel Worksheet Functions 4 March 15th 07 04:50 AM
function for ranking ? gsd Excel Programming 5 February 15th 07 04:28 PM


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