RANK Function

The RANK function is one of the statistical functions. It is used to return the rank of a number in a list of numbers. The rank of a number is its size relative to other values in a list (if you were to sort the list, the rank of the number would be its position).

Syntax

RANK(number, ref, [order])

The RANK function has the following arguments:

ArgumentDescription
numberThe value you want to find the rank for.
refThe selected range of cells containing the specified number.
orderThe numeric value that specifyes how to order the ref array. It is an optional argument. If it is 0 or omitted, the function ranks number as if ref were a list sorted in descending order. Any other numeric value is treated as the value 1 and the function ranks number as if ref were a list sorted in ascending order.
Notes

How to apply the RANK function.

Examples

The figure below displays the result returned by the RANK function.

RANK Function

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags