Compatibility - RANK Function



The RANK function replaces the RANK.EQ function in Excel 2010.

Description

The function returns 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 sort the list, the rank of the number would be its position.

Syntax

RANK (number,ref,[order])

Arguments

Argument Description Required/ Optional
Number The number whose rank you want to find. Required
Ref An array of, or a reference to, a list of numbers. Nonnumeric values in ref are ignored. Required
Order

A number specifying how to rank number.

If order is 0 (zero) or omitted, Microsoft Excel ranks number as if ref were a list sorted in descending order.

If order is any nonzero value, Microsoft Excel ranks number as if ref were a list sorted in ascending order.

Optional

Notes

  • RANK gives duplicate numbers the same rank. However, the presence of duplicate numbers affects the ranks of subsequent numbers.

  • For some purposes, one might want to use a definition of rank that considers ties. This can be done by adding the following correction factor to the value returned by RANK. This correction factor is appropriate both for the case where rank is computed in descending order (order = 0 or omitted) or ascending order (order = nonzero value).

  • Correction factor for tied ranks=[COUNT(ref) + 1 – RANK(number, ref, 0) – RANK(number, ref, 1)]/2

Example

RANK Function
advanced_excel_compatibility_functions.htm
Advertisements