Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #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.
________________________________________
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Ranking by MS-Excel Function

Hi Ivan,

Am Sat, 24 Jan 2015 01:13:24 -0800 (PST) schrieb Ivan Peeler:

{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.


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?


if column A is sorted ascending try in B1:
=RANK(A1,$A$1:$A$33,1)
and in B2:
=IF(A2=A1,B1,B1+1)
and copy down

Is column A sorted descending try in B1:
=RANK(A1,$A$1:$A$33,0)


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Ranking by MS-Excel Function

Hi Ivan,

Am Sat, 24 Jan 2015 10:42:12 +0100 schrieb Claus Busch:

if column A is sorted ascending try in B1:
=RANK(A1,$A$1:$A$33,1)
and in B2:
=IF(A2=A1,B1,B1+1)
and copy down

Is column A sorted descending try in B1:
=RANK(A1,$A$1:$A$33,0)


if you use a helper column sorting does not matter.

Please have a look:
https://onedrive.live.com/?cid=9378A...121822A3%21326
for "Rank"


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Ranking by MS-Excel Function

Claus Busch Esq.,

Thank you for responding to my query.

Regards.
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
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 05:15 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"