Ranking with Duplicates

S

shocksterman

I am trying to rank a list of 10 numbers and I know how to rank using
the RANK function. I have a problem though. When there are two (or
more) values that are the same, i want them to show .5 instead of
multiple 4s. i.e.

1356 9
1394 12
1252 6
1141 2
1374 10
1388 11
1152 3
1242 5
1256 8
1252 6
1158 4
980 1


There are two occurences of 6.. but I would them to each be 6.5 rather
than each of them being 6.

Any thoughts?
 
S

SteveM

I am trying to rank a list of 10 numbers and I know how to rank using
the RANK function. I have a problem though. When there are two (or
more) values that are the same, i want them to show .5 instead of
multiple 4s. i.e.

1356 9
1394 12
1252 6
1141 2
1374 10
1388 11
1152 3
1242 5
1256 8
1252 6
1158 4
980 1

There are two occurences of 6.. but I would them to each be 6.5 rather
than each of them being 6.

Any thoughts?

You could add a third column with COUNTIF nested in an IF like this:

=IF(COUNTIF($L$4:$L$14,L4) > 1,L4+0.5,L4)

Here L4 is your second column RANK value, L4:L14 the COUNTIF column
reference. The IF adds the .5 value if the COUNTIF > 1. Copy the
formula down the third column and you're done.

SteveM
 
K

kounoike

i was wrong in my formula. A12 in RANK should be A1. But your formula is
much more simple. i think it might be better to use COUNTIF(ref, number)/2
as Correction factor for tied ranks instead of [COUNT(ref) + 1 -
RANK(number, ref, 0) - RANK(number, ref, 1)]/2 in the help

Regards
keiji
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Ranking with Duplicates 1
Ranking with Duplicates 1
Duplicate Numbers in Ranks 2
Not ranking 0's 2
Ranking based on two columns 10
Ranking 3
RANKING alters when data is filtered 4
Ranking (Look for previous ranking) 3

Top