ID EN
#Statistical

RANK.AVG

Excel Functions

Rank a number against a range of numbers

Syntax

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

Arguments

Parameter Description
number The number to rank.
ref A range that contains the numbers to rank against.
order [optional] Rank ascending or descending. Default is zero.

Return Value

A number that indicates rank.

Details

The RANK.AVG function returns the rank of a numeric value compared to a list of other numeric values. RANK.AVG can rank values from largest to smallest (i.e., the rank of highest test scores) and smallest to largest (i.e., the rank of fastest times in a race). When RANK.AVG encounters duplicates, it will assign an average rank to each set of duplicates. RANK.AVG works fine with sorted or unsorted data — it is not necessary to sort the values in the list before RANK.AVG. The basic syntax for RANK.AVG looks like this: where number is the value you want to rank, ref is a range that contains numbers to rank against, and order is an optional argument for controlling the ranking direction. By default, RANK.AVG will rank values in descending order and assign an average rank to tied values in the

Examples

Synax

The basic syntax for RANK.AVG looks like this:

EXCEL
=RANK.AVG(number,ref,[order])
Ranking in descending or ascending order

The RANK.AVG function has two modes of operation, descending and ascending, which are controlled by the order argument. To rank values where the large

EXCEL
=RANK.AVG(A1,range) // rank descending (default)
=RANK.AVG(A1,range,0) // rank descending
Ranking in descending or ascending order

To rank values where the smallest value should be 1, set order to 1:

EXCEL
=RANK.AVG(A1,range,1) // rank ascending
Example - ranking test scores in descending order

In the worksheet below, the goal is to rank test scores. For test scores, the highest score should be assigned a rank of 1, so the RANK.AVG function i

EXCEL
=RANK.AVG(C5,$C$5:$C$12)
Example - ranking race times in ascending order

In the example below, the goal is to rank race times. This is an example of where we want to assign a rank of 1 to the fastest time, which will be the

EXCEL
=RANK.AVG(C5,$C$5:$C$12,1)

See Also

RANK RANK.EQ SMALL LARGE