This article describes the syntax and example of the RANK function in Microsoft Excel. The Excel RANK function returns the rank of a number in a list of numbers.
Syntax = RANK (number, ref, [order])
Number = value whose rank is to be calculated.
Ref = the values against which the rank is calculated.
For Example
Find the students RANK.
![RANK Function Formula](https://programming-point.com/wp-content/uploads/2024/02/Image-1-RANK-Function-.png)
Note
When we drag this formula down, the absolute reference ($B$5:$B$12) stays the same, while the relative reference (B5) changes to B6, B7, B8, etc.
![Rank Function Example](https://programming-point.com/wp-content/uploads/2024/02/Image-2-RANK-Function-.png)
RANK.AVG Function
Use RANK.AVG to return the average rank if more than one number has the same rank.
For Example
Find the rank when you have same percentage.
![RANK AVG Formula](https://programming-point.com/wp-content/uploads/2024/02/image-1.png)
![Find Rank in Excel](https://programming-point.com/wp-content/uploads/2024/02/image-2.png)
Return the average rank.