RANK.AVG function

Applies To
Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel 2024 Excel 2024 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2016 Excel Web App

This article describes the formula syntax and usage of the RANK.AVG function in Microsoft Excel.

Description

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.

Syntax

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

The RANK.AVG function syntax has the following arguments:

  • Number  Required. The number whose rank you want to find.
  • Ref  Required. An array of, or a reference to, a list of numbers. Nonnumeric values in Ref are ignored.
  • Order  Optional. A number specifying how to rank number.

Remarks

  • If Order is 0 (zero) or omitted, Excel ranks number as if ref were a list sorted in descending order.
  • If Order is any nonzero value, Excel ranks number as if ref were a list sorted in ascending order.

Example

Copy the example data in the following table and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Day Temp (F)
7/1/2011 89
7/2/2011 88
7/3/2011 92
7/4/2011 101
7/5/2011 94
7/6/2011 97
7/7/2011 95
Formula Description Result
=RANK.AVG(94,B2:B8) Finds the rank (the position) of the value 94 in the cell range B2:B8. In this case, 7/5/11, when the temperature reached 94, was the 4th hottest day of the days listed. 4