Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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! |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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! |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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! |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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! |
#10
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to remove repeated email ids by macro? | Excel Discussion (Misc queries) | |||
How to remove duplicated data repeated.... | Excel Worksheet Functions | |||
how do I remove repeated data in excel | Excel Worksheet Functions | |||
sorting with RANK/VLOOKUP (problem with equal ranks) | Excel Worksheet Functions | |||
RANK bug: same values get different ranks | Excel Worksheet Functions |