How to Rank Average in Excel (4 Common Scenarios)

We have a dataset with students and their scores, which we’ll use to rank the students.

dataset


Rank and Average in Excel

The RANK function is used to determine the rank or order of a number in a list. Using this function can rank the numbers of a list. But if there are two or more of the same values, the RANK function will display the same rank (the rank if the value is unique) for all the values.

 the rank function

The AVERAGE function gives the average value of some numbers.

the average funcion

The RANK.AVG function works in the same manner as the RANK function, but it gives an average rank if there are two or more of the same values.

Read More: Excel Percentile Rank Inc vs Exc


Rank Average in Excel Simultaneously

The RANK.AVG function returns the rank of a number in a list of numbers: its size relative to other values in the list; if more than one value has the same rank, the average rank is returned.

The syntax of this function is:

RANK.AVG(number, ref, [order])

syntax

Argument Required/Optional Explanation
number Required The numerical value whose rank will be determined in a list
ref Required An array or list that contains the numbers to rank against. The non-numerical entry of the list is ignored.
Order Optional The order of ranking, If empty or 0, the order will be descending. If 1, the order will be ascending.

This function is first available in Excel 2010.


Example 1 – Using Excel RANK-AVERAGE to Rank a List Based on a Value

We have a dataset where the obtained scores of different students in a test are given.

  • Use the following formula in cell D5:
=RANK.AVG(C5,$C$5:$C$11)

The function will determine the rank of the number in cell C5 in the list $C$5:$C$11.

Don’t forget to lock the range of the list.

rank average in Excel

  • Press ENTER.

result

  • Drag the fill handle of cell D5 to the end of your dataset.

output


Example 2 – Ranking Duplicates with Excel Rank-Average Function

Let’s see what happens if there are duplicate values in the list. We have the following dataset where the number 84 appears three times.

dataset

  • Use the following formula in cell D5:
=RANK.AVG(C5,$C$5:$C$11)

rank average in Excel

  • Hit Enter.

result

  • Drag down the fill handle.

output

The formula gives the rank of the number 84 as 5. The number 84 appears three times. The previous number in the descending order is 87 whose rank is 3 and the next number in the descending order is 69 whose rank is 7. So, the three 84s occupy the 4th, 5th, and 6th positions since their average rank is 5.


Example 3 – Ranking in Ascending Order Using RANK-AVERAGE

  • Use the following formula in cell D5,
=RANK.AVG(C5,$C$5:$C$11,1)

The optional argument 1 indicates that the rank will be assigned in ascending order.

rank average in Excel

  • Hit Enter.

result

  • Drag cell D5 to the end of your dataset.

result


Example 4 – Ranking in Descending Order with RANK-AVERAGE

The RANK.AVG function ranks numbers in descending order by default. If you leave the optional argument empty or put 0, you will also get the rank in descending order.

  • Use the following formula in cell D5:
=RANK.AVG(C5,$C$5:$C$11,0)

rank average in Excel

  • Press ENTER.

result

  • Drag the cell D5 to the end of your dataset.

rank average in Excel


Things to Remember

  • If the number is not in the range assigned as the ref, the function will return #N/A! Error.
  • If there is any non-numeric data in the list, it will be ignored by the RANK.AVG function.

Download the Practice Workbook


Related Articles


<< Go Back to Excel RANK Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Prantick Bala
Prantick Bala

PRANTICK BALA is a marine engineer who loves exploring Excel and VBA programming. Programming, to him, is a time-saving tool for efficiently managing data, files, and internet tasks. He is proficient in Rhino3D, Maxsurf, C++, MS Office, AutoCAD, Excel, and VBA and goes beyond the basics. Armed with a B.Sc in Naval Architecture & Marine Engineering from BUET, he has transitioned into the role of a content developer. Beyond his work, find him immersed in books, exploring new... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo