We all know that famous formula for ranking uniquely in excel when numbers are repeated which is:
=RANK(X5,$X$1:$X$10,0)+COUNTIF($X$1:X5,X5)-1
For instance the above formula shows the rank of the 5th number in a column "X" within 10 numbers.
I was using this and happened to find a counter example where this does not work for:
As you can see we have rank 6 twice. Any thoughts?
I tried it again and strangely this time it gives 5 for both B2 and B17 (following image). I have set a workaround formula in the modified column but do not know whether this will be true for all cases.
I get 5 in B17 when reproducing, not 6.
Therefore reproducing gives the expected behavior, not what you see.
Check the following:
If no issue there, try providing your actual precise cell values here (if they differ to what is displayed in the screenshot).
If still stuck, I could dig out some other versions to check. What software version did you see this result with?
Here is my result: