RANK works fine with sorted or unsorted data.

It is not necessary to sort the values in the list before using the RANK function.

By default, RANK will rank values indescendingorder and assign 1 to thelargestvalue in the list.

Using the RANK function to rank test scores

However, this behavior can be reversed using the optionalorderargument as explained below.

Note: The RANK function is classified as acompatibility function.

Microsoft recommendsRANK.EQorRANK.AVGbe used instead.

Using the RANK function to rank test scores

The optionalorderargument is not provided, since RANK will assign 1 to the largest value by default.

Also, note that the optionalorderargument is provided as 1 to force RANK to rank the times inascendingorder.

The next rank assigned will be 5, andno value will receive the rank of 4.

Using the RANK function to rank test scores

The RANK function assigns both a rank of 3 and the next rank, 4, is skipped.

If tied ranks are a problem, one workaround is to employ atie-breaking strategy.

RANK is the original ranking function in Excel.

Using the RANK function to rank test scores

RANK and RANK.EQ are essentially the same function.

There should be no cases where RANK and RANK.EQ return different results.

from a set of numeric data.

Using the RANK function to rank test scores

Using the RANK function to rank race times

How the RANK function ranks tied values

Excel formula: Basic text sort formula

Excel formula: Rank if formula

Excel formula: Rank function example

Excel formula: Basic numeric sort formula

Excel formula: Randomly assign people to groups

Excel formula: Sort text and numbers with formula

Excel formula: Rank without ties

Excel formula: Rank and score with INDEX and MATCH

Excel formula: Rank race results

Article image

Article image

Excel RANK.EQ function

Excel RANK.AVG function

Excel SMALL function

Excel LARGE function

How the RANK function ranks tied values