Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default RANK - Remove repeated ranks for sorting

Hello,
MS EXCEL 2003 on XP PRO.

for the overall simplicity of my spreadsheet, I want to use a rank as a
unique identifier so I use VLOOKUPS. My problem is that RANK() is VERY
likely to return repeated ranks (3 second places for instance) and thus mess
up my whole day.

I found that the correction offered in F1 Help
=(COUNT(AB:AB) + 1 - RANK($AB4,$AB:$AB,0)- RANK($AB4,$AB:$AB,1))/2
to produce the same effect.

Does anyone have a recommendation on how to rank say,

{1,2,2,2,3,3,4,5,6,7} with out repeating the rank? (largest is Rank = 1)?
{10,9,8,7,6,5,4,3,2,1} are the ranks for each number in the set above
Thank you!






--
BlueWolverine
MSE - Mech. Eng.
Go BLUE!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default RANK - Remove repeated ranks for sorting

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


"BlueWolverine" wrote:

Hello,
MS EXCEL 2003 on XP PRO.

for the overall simplicity of my spreadsheet, I want to use a rank as a
unique identifier so I use VLOOKUPS. My problem is that RANK() is VERY
likely to return repeated ranks (3 second places for instance) and thus mess
up my whole day.

I found that the correction offered in F1 Help
=(COUNT(AB:AB) + 1 - RANK($AB4,$AB:$AB,0)- RANK($AB4,$AB:$AB,1))/2
to produce the same effect.

Does anyone have a recommendation on how to rank say,

{1,2,2,2,3,3,4,5,6,7} with out repeating the rank? (largest is Rank = 1)?
{10,9,8,7,6,5,4,3,2,1} are the ranks for each number in the set above
Thank you!






--
BlueWolverine
MSE - Mech. Eng.
Go BLUE!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 36
Default RANK - Remove repeated ranks for sorting

=RANK($AB3,$AB:$AB,0)+IF(COUNTIF($AB:$AB,$AB3)1,A 3/1000000,0)

This works better, then format as number with zero decimal places.

column A is just 1 2 3 4 5 6 7 8 9 etc.
--
BlueWolverine
MSE - Mech. Eng.
Go BLUE!


"Teethless mama" wrote:

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


"BlueWolverine" wrote:

Hello,
MS EXCEL 2003 on XP PRO.

for the overall simplicity of my spreadsheet, I want to use a rank as a
unique identifier so I use VLOOKUPS. My problem is that RANK() is VERY
likely to return repeated ranks (3 second places for instance) and thus mess
up my whole day.

I found that the correction offered in F1 Help
=(COUNT(AB:AB) + 1 - RANK($AB4,$AB:$AB,0)- RANK($AB4,$AB:$AB,1))/2
to produce the same effect.

Does anyone have a recommendation on how to rank say,

{1,2,2,2,3,3,4,5,6,7} with out repeating the rank? (largest is Rank = 1)?
{10,9,8,7,6,5,4,3,2,1} are the ranks for each number in the set above
Thank you!






--
BlueWolverine
MSE - Mech. Eng.
Go BLUE!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default RANK - Remove repeated ranks for sorting

I got {10,7,8,9,5,6,4,3,2,1} with your formulas.

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


"BlueWolverine" wrote:

Hello,
MS EXCEL 2003 on XP PRO.

for the overall simplicity of my spreadsheet, I want to use a rank as a
unique identifier so I use VLOOKUPS. My problem is that RANK() is VERY
likely to return repeated ranks (3 second places for instance) and thus mess
up my whole day.

I found that the correction offered in F1 Help
=(COUNT(AB:AB) + 1 - RANK($AB4,$AB:$AB,0)- RANK($AB4,$AB:$AB,1))/2
to produce the same effect.

Does anyone have a recommendation on how to rank say,

{1,2,2,2,3,3,4,5,6,7} with out repeating the rank? (largest is Rank = 1)?
{10,9,8,7,6,5,4,3,2,1} are the ranks for each number in the set above
Thank you!






--
BlueWolverine
MSE - Mech. Eng.
Go BLUE!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 320
Default RANK - Remove repeated ranks for sorting

If the #s are in A2:A11, enter this in B2:
=RANK(A2,$A$2:$A$11,0)
and ARRAY-ENTER this in C2:
=SUM((A2<$A$2:$A$11)*1)+1+COUNTIF($B$1:B1,B2)
then fill B2:C2 down to C11. Your answers are in C2:C11.
HTH

"BlueWolverine" wrote in message
...
Hello,
MS EXCEL 2003 on XP PRO.

for the overall simplicity of my spreadsheet, I want to use a rank as a
unique identifier so I use VLOOKUPS. My problem is that RANK() is VERY
likely to return repeated ranks (3 second places for instance) and thus
mess
up my whole day.

I found that the correction offered in F1 Help
=(COUNT(AB:AB) + 1 - RANK($AB4,$AB:$AB,0)- RANK($AB4,$AB:$AB,1))/2
to produce the same effect.

Does anyone have a recommendation on how to rank say,

{1,2,2,2,3,3,4,5,6,7} with out repeating the rank? (largest is Rank = 1)?
{10,9,8,7,6,5,4,3,2,1} are the ranks for each number in the set above
Thank you!






--
BlueWolverine
MSE - Mech. Eng.
Go BLUE!




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default RANK - Remove repeated ranks for sorting

I got {10,7,8,9,5,6,4,3,2,1} with your formulas.


Bob Umlas wrote:
If the #s are in A2:A11, enter this in B2:
=RANK(A2,$A$2:$A$11,0)
and ARRAY-ENTER this in C2:
=SUM((A2<$A$2:$A$11)*1)+1+COUNTIF($B$1:B1,B2)
then fill B2:C2 down to C11. Your answers are in C2:C11.
HTH

"BlueWolverine" wrote in
message ...
Hello,
MS EXCEL 2003 on XP PRO.

for the overall simplicity of my spreadsheet, I want to use a rank as a
unique identifier so I use VLOOKUPS. My problem is that RANK() is VERY
likely to return repeated ranks (3 second places for instance) and
thus mess
up my whole day.

I found that the correction offered in F1 Help
=(COUNT(AB:AB) + 1 - RANK($AB4,$AB:$AB,0)- RANK($AB4,$AB:$AB,1))/2
to produce the same effect.

Does anyone have a recommendation on how to rank say,

{1,2,2,2,3,3,4,5,6,7} with out repeating the rank? (largest is Rank =
1)?
{10,9,8,7,6,5,4,3,2,1} are the ranks for each number in the set above
Thank you!






--
BlueWolverine
MSE - Mech. Eng.
Go BLUE!


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default RANK - Remove repeated ranks for sorting

BlueWolverine wrote:
Hello,
MS EXCEL 2003 on XP PRO.

for the overall simplicity of my spreadsheet, I want to use a rank as a
unique identifier so I use VLOOKUPS. My problem is that RANK() is VERY
likely to return repeated ranks (3 second places for instance) and thus mess
up my whole day.

I found that the correction offered in F1 Help
=(COUNT(AB:AB) + 1 - RANK($AB4,$AB:$AB,0)- RANK($AB4,$AB:$AB,1))/2
to produce the same effect.

Does anyone have a recommendation on how to rank say,

{1,2,2,2,3,3,4,5,6,7} with out repeating the rank? (largest is Rank = 1)?
{10,9,8,7,6,5,4,3,2,1} are the ranks for each number in the set above
Thank you!







With your data in A2:A11, put this in B2 and copy down to B11:

=COUNTIF($A$2:$A$11,"="&A2)-COUNTIF($A$2:A2,A2)+1
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default RANK - Remove repeated ranks for sorting

Glenn wrote:
BlueWolverine wrote:
Hello,
MS EXCEL 2003 on XP PRO.

for the overall simplicity of my spreadsheet, I want to use a rank as
a unique identifier so I use VLOOKUPS. My problem is that RANK() is
VERY likely to return repeated ranks (3 second places for instance)
and thus mess up my whole day.

I found that the correction offered in F1 Help =(COUNT(AB:AB) + 1 -
RANK($AB4,$AB:$AB,0)- RANK($AB4,$AB:$AB,1))/2
to produce the same effect.

Does anyone have a recommendation on how to rank say,

{1,2,2,2,3,3,4,5,6,7} with out repeating the rank? (largest is Rank =
1)?
{10,9,8,7,6,5,4,3,2,1} are the ranks for each number in the set above
Thank you!







With your data in A2:A11, put this in B2 and copy down to B11:

=COUNTIF($A$2:$A$11,"="&A2)-COUNTIF($A$2:A2,A2)+1



Inverse ranking {1,2,3, ...} would be this:

=COUNTIF($A$2:$A$11,"<="&A2)-COUNTIF(A2:$A$11,A2)+1
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default RANK - Remove repeated ranks for sorting

Hello,

I suggest to use Countif instead of RankÖ
http://sulprobil.com/html/rank.html

Regards,
Bernd
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default RANK - Remove repeated ranks for sorting

Bernd P wrote:
Hello,

I suggest to use Countif instead of RankÖ
http://sulprobil.com/html/rank.html

Regards,
Bernd



Also yields close (but not exact) results as requested by the OP.

Try this:

=COUNTIF($A$4:$A$8,"="&A4)-COUNTIF($A$4:A4,A4)+1

instead of this:

=COUNTIF($A$4:$A$8,""&A4)+COUNTIF($A$4:A4,A4)


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
How to remove repeated email ids by macro? Harshad[_2_] Excel Discussion (Misc queries) 4 February 17th 09 06:48 AM
How to remove duplicated data repeated.... Kimmie Excel Worksheet Functions 7 September 24th 08 09:23 PM
how do I remove repeated data in excel S. Virgile Excel Worksheet Functions 1 June 27th 06 06:00 PM
sorting with RANK/VLOOKUP (problem with equal ranks) hip Excel Worksheet Functions 2 February 28th 06 06:39 AM
RANK bug: same values get different ranks Charles Blaquière Excel Worksheet Functions 6 June 16th 05 06:23 PM


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