# How to Use Excel RANK Function?

Excel RANK Function: Microsoft Excel is a powerful data visualization and analysis program used all around the world. It uses spreadsheets to store, organize, or perform operations with formulas and functions. If you want to get the rank of a numeric value in the spreadsheet, you can use the RANK function.

In this article, we are going to see how to use the Excel RANK Function with its syntax, explanation, and examples. Get an official version of MS Excel from the following link:

https://www.microsoft.com/en-in/microsoft-365/excel

## Description of RANK Function

• It is one of the built-in functions in Microsoft Excel.
• This function returns the rank of a number from a list of numerical values.

## Syntax

• Here, you will see the syntax of the RANK function.
• To apply this function on your spreadsheet, you have to select a cell and enter the formula in the following format.
• Once you enter the formula, just click on the button to get the result.

=RANK(number, ref, [order])

Arguments Explanation:

• Number –  The number to rank.
• Array – It is the array that contains a set of numeric values.
• Order – It is an optional one. If the order is 0 or omitted, it will sort the array in descending order. If the order is a non-zero value and then it will sort the array in ascending order.

Note:
1) If either of the argument is non-numeric and then this function returns #VALUE! Error.
2) If there are no arguments in the array, it will return #N/A! error.

## Examples

Let’s see some examples to understand this concept easily.

• Initially, you have to open your Excel workbook on your PC and launch a worksheet that has data.
• For example, we have shown you a student’s marks in the range B3:B9 and we will get the rank of each number in the range using the RANK function.
• Then, we have to apply the above-mentioned formula to get the result, as shown in the following screenshot.
• Finally, we need to click on the button to get the result. Then, you will need to drag down the first cell to fill the remaining range of cells.
• If either of the argument is non-numeric and then this function returns #VALUE! Error.