Equal ranks - but no gaps

T

Thomas

I checked quite a number of answers in this area, but couldn't find a
solution to my little ranking problem (column B is the ranking as I would
like to see it):

A B
1 Value Rank
2 1 1
3 1 1
4 1 1
5 2 2 <----- that being the 'tricky' part :)
6 3 3

Thank you very much!
Thomas
 
B

bj

one method would be to use some helper columns(C:D?)

use advanced filter to generate a list of unique numbers from column A in
the first helper column
in the second helper column, use the rank() function on the first helper
column
in column B use vlookup(A2,C$1!:D$3,2) copy and drag down
 
T

T. Valko

If the values are unsorted:

=IF(A2="","",SUMPRODUCT(--(A2>A$2:A$6),1/COUNTIF(A$2:A$6,A$2:A$6&""))+1)
 
T

Thomas

Thanks a lot!! Worked like a charm!!!!!

T. Valko said:
If the values are unsorted:

=IF(A2="","",SUMPRODUCT(--(A2>A$2:A$6),1/COUNTIF(A$2:A$6,A$2:A$6&""))+1)
 
Top