RANK.EQ function usage

Returns the numeric rank of a column of numbers. Its size is related to the other values in the list; If multiple values have the same rank, the highest rank of that group of values is returned.

If you want to sort a list, the numeric rank can be used as its position.

grammar

RANK.EQ(number,ref,[order])

The RANK.EQ function syntax has the following parameters:

Number required. To find the number it ranks.

Ref required. Array of a list of numbers, a reference to a list of numbers. Non-numeric values in the Ref are ignored.

Order is optional. A number that specifies how a number is ranked.

Instructions

If Order is 0 (zero) or omitted, Excel ranks numbers based on Ref being a list in descending order.

If Order is not zero, Excel ranks numbers based on Ref being a list in ascending order.

Rank. EQ assigns a RANK with the same number of repetitions. However, the presence of the duplicate number will affect the ranking of subsequent values. For example, in a list of integers sorted in ascending order,

If the number 10 occurs twice and its rank is 5, then 11 has a rank of 7 (there is no value with a rank of 6).

For some purposes, it may be necessary to use a ranking definition that takes association into account. In the previous example, you might need to change the position of the number 10 to 5.5.

This can be done by adding the following correction factor to the value returned by RANK.EQ.

This correction factor applies to sorting in descending order (order = 0 or omitted) and sorting in ascending order (order = non-zero value).

Correlation ranking correction coefficient =[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, taking into account the correlation

The order is 3 + 0.5 = 3.5. If the number appears only once in the ref, this correction factor will be 0, since there is no need to adjust RANK.EQ for correlation.

I want to create a clean, concise and efficient office reference manual, in order to maintain a good reference experience, I did not add any third-party advertisements in my blog, of course, if you are willing, you can watch the following video, it can bring me some income, so that I can better maintain the server to provide higher quality service, thank you for your help and support.

You can choose any link below to watch my videos and I will earn some money to strengthen the site and resist DDOS attacks that may happen at any time, thank you for your support!
(Please note: Please do not maliciously click on links or video ads to increase invalid traffic, as this can result in lower or no revenue.)

Learn to consult the manual video

(Will be released in the later period with the consult the manual article, please pay attention.)

My Febspot video list (Learn after-school relaxation videos)

https://suu.us/sponsor

My Febspot video home page

https://www.febspot.com/leet4477/