June 18, 2021

# How to use RANK.EQ Function in Excel

The Excel RANK.EQ function returns the rank of a number against a list of other other numeric values. When values contain duplicates, RANK.EQ will assign the higher rank to each set of duplicates.

Syntax:= RANK.EQ (number, ref, [order])

The RANK.EQ function syntax has the following arguments:

• Number     Required. The number whose rank you want to find.
• Ref     Required. An array of, or a reference to, a list of numbers. Non-numeric values in Ref are ignored.
• Order     Optional. A number specifying how to rank number.

Example: Let’s look at some Excel RANK.EQ function examples and explore how to use the RANK.EQ function as a worksheet function in Microsoft Excel:

Syntax:  =RANK.EQ(B2,\$B\$2:\$B\$17)

Result: 3

Based on the Excel spreadsheet above, the following RANK.EQ examples would return:

Syntax: =RANK.EQ(B3,\$B\$2:\$B\$17)
Result: 4

Syntax: =RANK.EQ(B4,\$B\$2:\$B\$17)
Result: 15

Syntax: =RANK.EQ(B5,\$B\$2:\$B\$17)
Result: 12

Syntax: =RANK.EQ(B6,\$B\$2:\$B\$17)
Result: 8

Syntax: =RANK.EQ(B7,\$B\$2:\$B\$17)
Result: 1

Syntax: =RANK.EQ(B8,\$B\$2:\$B\$17)
Result: 13

Syntax: =RANK.EQ(B9,\$B\$2:\$B\$17)
Result: 10

Syntax: =RANK.EQ(B10,\$B\$2:\$B\$17)
Result: 14

Syntax: =RANK.EQ(B11,\$B\$2:\$B\$17)
Result: 7

Syntax: =RANK.EQ(B12,\$B\$2:\$B\$17,1)
Result: 1

Syntax: =RANK.EQ(B13,\$B\$2:\$B\$17,1)
Result: 6

Syntax: =RANK.EQ(B14,\$B\$2:\$B\$17,1)
Result: 11

Syntax: =RANK.EQ(B15,\$B\$2:\$B\$17,1)
Result: 15

Syntax: =RANK.EQ(B16,\$B\$2:\$B\$17,1)
Result: 11

Syntax: =RANK.EQ(B17,\$B\$2:\$B\$17,1)
Result: 8

Note:

• If Order is 0 (zero) or omitted, Excel ranks Number as if Ref were a list sorted in descending order.
• If Order is any nonzero value, Excel ranks Number as if Ref were a list sorted in ascending order.
• RANK.EQ gives duplicate numbers the same rank. However, the presence of duplicate numbers affects the ranks of subsequent numbers. For example, in a list of integers sorted in ascending order, if the number 10 appears twice and has a rank of 5, then 11 would have a rank of 7 (no number would have a rank of 6).
• For some purposes one might want to use a definition of rank that takes ties into account. In the previous example, you would want a revised rank of 5.5 for the number 10. This can be done by adding the following correction factor to the value returned by RANK.EQ. 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.EQ(number, ref, 0) – RANK.EQ(number, ref, 1)]/2.

In the example in the workbook, RANK.EQ(A3,A2:A6,1) equals 3. The correction factor is (5 + 1 – 2 – 3)/2 = 0.5 and the revised rank that takes ties into account is 3 + 0.5 = 3.5. If number occurs only once in ref, the correction factor will be 0, since RANK.EQ would not have to be adjusted for a tie.

READ:  How to use FORECAST.ETS.SEASONALITY Function in Excel

#### Excel

View all posts by Excel →