RANKAVG
Returns the rank/position of a number in a list of numbers.
A number's rank refers to its size or value in comparison to the values of other numbers in a list. If you were to sort the list (ascending or descending), the rank of the number would be its position.
If more than one value has the same rank, the average rank is returned.
Syntax
Arguments
The RANKAVG function syntax has the following arguments:
number: Required. The number whose rank you wish to find.
list: Required. A list of numbers, or a reference to it.
order: Optional. A number that specifies whether the numbers should be ranked ascending or descending in the list.
If the order is 0 (zero), Inforiver ranks the number as if the list is sorted in descending order. The highest value number is assigned a rank of 1, and so on.
If the order is omitted or any nonzero value is entered, Inforiver ranks the number as if the list is sorted in ascending order. The lowest value number is assigned a rank of 1, and so on.
Example
The RANKAVG function can be used to rank the values of multiple entities in important metrics such as score, cost, revenue, and sales, particularly when there is a possibility of more duplicate values.
In the example below, we have used the RANKAVG function to rank the sales across different product categories. The average rank is returned for duplicates.
Excel Equivalent
Last updated
Was this helpful?