Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

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

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×