1. Home
  2. Functions
  3. Statistical
  4. RANK.AVG

RANK.AVG function

Returns the rank of a number in a list; equal values get the average of their ranks.

Syntax

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

Arguments

ArgumentRequiredDescription
numberRequiredThe number to rank
refRequiredThe list of numbers
orderOptional0 or left out for descending, any other number for ascending

How to use RANK.AVG

RANK.AVG takes 2 required arguments and 1 optional argument. Type =RANK.AVG( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=RANK.AVG(94, {89,88,92,101,94,97,95})Result 4
=RANK.AVG(3.5, {7,3.5,3.5,1,2}, 1)Result 3.5

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.