# How to Use Excel RANK.AVG Function?

Excel RANK.AVG Function: Sometimes, we maintain huge data in the Excel spreadsheet and want to rank them. Doing this manually will take a lot of time. But you can use the RANK.AVG function to rank the set of numbers. And it will finish the work as quickly as possible.

In this post, we are going to explore how to use Excel RANK.AVG 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

## Explanation of RANK.AVG 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.
• If more than one value has the same rank, then this function returns the average rank.

## Syntax

• Here, you will see the syntax of the RANK.AVG 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.AVG(number, ref, [order])

Arguments Explanation:

• Number –  The number to rank.
• Ref – 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.AVG 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.

From the above example, you can see that the RANK.AVG function does not accept any non-numerical values as input. If you use any non-numerical value, then it returns the #VALUE! Error.