Skip to content

How to rank in Excel without ties in Excel

Rank values with RANK.EQ, then break ties with COUNTIF so every row gets a unique rank, with the first listed winning the tie.

Eight reps have a score each and you want to rank them. RANK.EQ does that in one function, but when two scores are equal they get the same rank, and the next rank is skipped. Two reps in joint second place are both 2, and nobody is 3.

For a leaderboard, a bonus list or a pick-the-top-N formula you often need every row to have a different rank. The tie-break is a one-line addition.

=RANK.EQ(B2, B$2:B$9) + COUNTIF(B$2:B2, B2) - 1

RANK.EQ gives the shared rank. COUNTIF over a range that grows as you fill down (the anchored B$2 and the moving B2) counts how many times this score has appeared so far, including this row. The first appearance counts 1, which adds nothing after the minus 1. The second appearance counts 2, which pushes its rank down by one. So the tied rows get consecutive ranks, in the order they appear in the list.

Two things to know. The tie is broken by position, not by merit, so if you need a fairer rule, such as the earlier date or the higher secondary score, build that rule into a helper column and rank that instead. And the order argument controls direction: leave it out for highest first, or use 1 for lowest first.

A ranked list is easier to read when it is sorted. Combine the ranks with INDEX and MATCH, or sort with the SORT function. The Analysis track covers rank, percentile and sorting.

2 ways to do it

1RANK.EQ plus a tie-breaker

=RANK.EQ(B2,B$2:B$9)+COUNTIF(B$2:B2,B2)-1

  1. In D2 type =RANK.EQ(B2,B$2:B$9)+COUNTIF(B$2:B2,B2)-1.
  2. Fill the formula down. The growing COUNTIF range counts how many times each score has appeared so far.
  3. Check the ranks run 1 to 8 with no gaps or repeats.

2COUNTIF only

=COUNTIF(B$2:B$9,">"&B2)+COUNTIF(B$2:B2,B2)

  1. Count how many scores are higher, add 1, then add the number of earlier rows with the same score.

Try it yourself

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In C2, rank the score in B2 among B2:B9, highest first. Fill down to C9.

Answer in C2, then it fills down to C9.

C2
A
B
C
D
E
1
Rep
Score
Rank
Unique rank
2
Rep A
82
3
Rep B
91
4
Rep C
76
5
Rep D
91
6
Rep E
88
7
Rep F
76
8
Rep G
95
9
Rep H
91

Learn it properly, one graded sheet at a time.

Data analysis with formulas covers this in lesson 3, Criteria with operators.