1. Home
  2. Functions
  3. Compatibility
  4. RANK
CompatibilityCompatibility

RANK function

Returns the rank of a number in a list (older name of RANK.EQ).

Syntax

=RANK(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

RANK is kept so older workbooks keep working. It calculates the same way as RANK.EQ, which is the name to use in new formulas.

RANK takes 2 required arguments and 1 optional argument. Type =RANK( 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(2, {7,3.5,3.5,1,2})Result 4

Every formula, right in your browser

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