Excel function

RANK.AVGfunction

Returns the rank of a value within a range. Ties get the average of their ranks.

All versions
=RANK.AVG(B3, B2:D6, 0)
A
B
C
D
1
2
3
4
5
6

Drag the corner dots to change ref. Click a cell in the table to change number. Click 88. It shares 5th and 6th place, so it ranks 5.5. Try breaking it on purpose to see the errors.

Result

2

number
B3You can also click a cell in the table

The cell with the number to rank. Click another score in the table.

ref
B2:D6Drag the corner dots on the table

The cells to calculate. Cells that are not numbers are ignored.

order

0 (or omitted): the largest value ranks 1. 1: the smallest value ranks 1.

What is the RANK.AVG function?

=RANK.AVG(number, ref, [order])

RANK.AVG ranks like RANK.EQ, but when several values tie it returns the average of the ranks they share.

If two values share 5th and 6th place, RANK.EQ gives both 5 and RANK.AVG gives both 5.5. Use it in statistics where the ranks must add up correctly.

Arguments

number
The value to rank.
ref
The values to compare against.
order
0 or omitted: largest is 1st. 1: smallest is 1st.

RANK.AVG examples

  1. Example 1. Average for ties

    =RANK.AVG(88, {95,92,88,88,80})

    88 shares 3rd and 4th place, so it ranks 3.5.

  2. Example 2. Ascending

    =RANK.AVG(B2, $B$2:$B$10, 1)

    The smallest value ranks 1st.

  3. Example 3. Compared with RANK.EQ

    =RANK.EQ(88, {95,92,88,88,80})

    The same data gives 3.

Common mistakes

FAQ

When is it used?
In statistics that reuse ranks (rank correlation and so on) to treat ties fairly.
Three-way tie?
Sharing 2nd, 3rd and 4th gives all three a rank of 3.