This post will guide you how to use the RANK function with syntax and examples in Microsoft excel.
The Excel RANK function returns the rank of a given number in a supplied range of cells. If there are duplicated values in a list of values, it will be set the same rank. This function has been replaced by the RANK.EQ function in Excel 2010.
The RANK function is a build-in function in Microsoft Excel and it is categorized as a Statistical Function.
The RANK function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.
The syntax of the RANK function is as below:
= RANK (number,ref,[order])
Where the RANK function arguments are:
- Number – This is a required argument. The number for which you want to get the rank.
- ref – This is a required argument. An array or range of cells, or cell reference that contain the supplied number.
- Order – This is an optional argument. . A number specifying how to rank number. If order is 0 or omitted, the RANK function will rank the numbers in descending order. If the order is not equal to 0, the RANK function will rank numbers in ascending order.
Excel RANK Function Examples
The below examples will show you how to use Excel RANK Function to get the rank of a given value within a supplied range of cells.
Example 1: to get the rank of 4 in a given range of cells (A1:A4), using the following formula: