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
Example 1. Average for ties
=RANK.AVG(88, {95,92,88,88,80})88 shares 3rd and 4th place, so it ranks 3.5.
Example 2. Ascending
=RANK.AVG(B2, $B$2:$B$10, 1)The smallest value ranks 1st.
Example 3. Compared with RANK.EQ
=RANK.EQ(88, {95,92,88,88,80})The same data gives 3.
Common mistakes
Ranks that are not whole numbers
Ties give ranks like 3.5. For displayed positions, RANK.EQ reads more naturally.
A value outside the range
It returns #N/A.
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.