Function · Ranking and percentiles

Excel RANK.AVG function

The Excel RANK.AVG function returns the rank of a number in a list. Two tied $118.45 bills both come out 2.5. RANK.EQ ranks both 2.

Excel 2010 and later, including Microsoft 365, Excel 2024, Excel 2021, Excel 2019, and Excel for the web. Also in Google Sheets.

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

RANK.AVG
=RANK.AVG(B4,B2:B5,0)

Arguments

NameRequiredWhat to pass
numberRequiredThe value to rank. It should be one of the numbers in ref. Text in this argument is
refRequiredThe list. Text and blanks are ignored. A zero is included and takes a place.
orderOptional0 or omitted ranks from largest to smallest, so the biggest bill is 1. Any other number ranks from smallest to largest.

Examples

February and March are both $118.45

=RANK.AVG(B4,B2:B5,0)

Result 2.5

Four different utility bills, and March is 2nd

=RANK.AVG(B4,B2:B5,0)

Result 2

The same tie, with the smallest bill in first place

=RANK.AVG(B4,B2:B5,1)

Result 2.5

Three Mondays in March 2026 closed at the same amount

=RANK.AVG(B3,B2:B6,0)

Result 3

=RANK.AVG(B4,B2:B5,0)B6
Utilities
AB
1DateBill
21/15/2026143.60
32/15/2026118.45
43/15/2026118.45
54/15/202688.10
6Rank of March2.5
A picture of the sheet, not a live calculator. B4 is the 3/15/2026 bill. February is the same $118.45, so the rank is 2.5. RANK.EQ of B4 is 2. The rank cell sits outside the list, so it is not ranked as a bill.

RANK.AVG returns the place of one number in a list. When several numbers share a value, the result is the average of the places those ties occupy. The bills dated 1/15/2026, 2/15/2026, 3/15/2026, and 4/15/2026 are $143.60, $118.45, $118.45, and $88.10. The two $118.45 amounts occupy 2nd and 3rd when the largest bill is in first place, so =RANK.AVG(B4,B2:B5,0) is 2.5. RANK.EQ of either tied bill is 2, and April’s $88.10 is 4 either way. January’s $143.60 is 1. Order 0, or leaving order out, ranks from largest to smallest.

The four utility bills $143.60, $96.20, $118.45, and $88.10 have no tie, so March’s $118.45 is 2 for RANK.AVG and for RANK.EQ. Pass 1 and the smallest bill is rank 1. On the tied list, April’s $88.10 is then 1, the two $118.45 bills are 2.5, and January is 4. Five Monday sales dated 3/2/2026, 3/9/2026, 3/16/2026, 3/23/2026, and 3/30/2026, for $4,200, $3,150, $3,150, $3,150, and $2,480, put the three $3,150 amounts in 2nd, 3rd, and 4th. The average is 3. RANK.EQ of $3,150 is 2. The $4,200 is 1 and the $2,480 is 5.

Text and blanks in the list are ignored. A typed 0 is a number and takes a place. With April replaced by 0, the $118.45 tie is still 2.5 and the 0 is rank 4. Ranking 0 when no cell contains 0 is #N/A. The value in a given place, rather than the place of a known value, is LARGE. SMALL counts from the low end. PERCENTRANK.INC reports where a value sits as a fraction from 0 to 1. A whole rank such as 2 can be written 2nd with the ordinal LAMBDA. 2.5 is the average of 2nd and 3rd. Excel 2010 added RANK.AVG. The older RANK name still calculates, and it breaks ties the way RANK.EQ does. RANK.AVG is in Excel 2010 and later, including Microsoft 365, Excel 2024, Excel 2021, Excel 2019, and Excel for the web.