Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
arron laing
 
Posts: n/a
Default RANK, duplicate ranking but no gaps in rank


I have a list of data that I wish to rank, but I do not want the gaps in
the ranking numbers created by duplicates in the data, ie.

Data Rank Req
1 1
2 2
3 3
3 3
6 4
7 5

Thanks

Arron


--
arron laing
------------------------------------------------------------------------
arron laing's Profile: http://www.excelforum.com/member.php...o&userid=11761
View this thread: http://www.excelforum.com/showthread...hreadid=551307

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default RANK, duplicate ranking but no gaps in rank

=RANK(A1,$A$1:$A$10,1)+COUNTIF($A$1:$A1,A1)-1

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"arron laing"
wrote in message
...

I have a list of data that I wish to rank, but I do not want the gaps in
the ranking numbers created by duplicates in the data, ie.

Data Rank Req
1 1
2 2
3 3
3 3
6 4
7 5

Thanks

Arron


--
arron laing
------------------------------------------------------------------------
arron laing's Profile:

http://www.excelforum.com/member.php...o&userid=11761
View this thread: http://www.excelforum.com/showthread...hreadid=551307



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
arron laing
 
Posts: n/a
Default RANK, duplicate ranking but no gaps in rank


Thanks for replying Bob but that is not not I am after.

I believe your solution gives unique rankings, whereas I am after a
solution that allows duplicate rankings but where the rank numbers are
continuous, ie. no gaps.

Note that the 3s in the data col get a rank of 3, and the next data
entry, 6, gets a rank of 4, not 5 as the standard RANK() return would
be.

Thanks in advance.

Arron


--
arron laing
------------------------------------------------------------------------
arron laing's Profile: http://www.excelforum.com/member.php...o&userid=11761
View this thread: http://www.excelforum.com/showthread...hreadid=551307

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default RANK, duplicate ranking but no gaps in rank

Assuming that A2:A7 contains the data, try the following formula which
needs to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER...

B2, copied down:

=SUM(IF(A2$A$2:$A$7,1/COUNTIF($A$2:$A$7,$A$2:$A$7)))+1

Hope this helps!

In article ,
arron laing
wrote:

I have a list of data that I wish to rank, but I do not want the gaps in
the ranking numbers created by duplicates in the data, ie.

Data Rank Req
1 1
2 2
3 3
3 3
6 4
7 5

Thanks

Arron

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
arron laing
 
Posts: n/a
Default RANK, duplicate ranking but no gaps in rank


Thanks Domenic

That is exactly what I am after - and not a RANK() to be seen!

Cheers

Arron


--
arron laing
------------------------------------------------------------------------
arron laing's Profile: http://www.excelforum.com/member.php...o&userid=11761
View this thread: http://www.excelforum.com/showthread...hreadid=551307



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 a List which must be within GROUPS Gary Jordan Excel Discussion (Misc queries) 0 May 24th 06 02:06 PM
Ranking numbers that are close together with the SAME RANK? Peter Gundrum Milwaukee WI Excel Discussion (Misc queries) 5 May 9th 06 05:11 PM
Rank with condition R. Choate Excel Discussion (Misc queries) 12 April 27th 06 03:51 AM
Ranking based on two columns sa02000 Excel Worksheet Functions 2 April 17th 06 06:10 PM
Ranking based on frequency mac_see Excel Worksheet Functions 2 February 1st 06 04:51 PM


All times are GMT +1. The time now is 04:28 PM.

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"