Excel RANK.EQ Function
Có thể bạn quan tâm
Home » Excel-Built-In-Functions » Excel-Statistical-Functions » Excel-Rank.Eq-Function
The Excel RANK.EQ Function Statistical RankIf you have a list of numbers, the statistical rank tells you the order of a value in that list.
The rank is therefore calculated by arranging the numbers in a specified order (usually descending) and then assigning a position to each value in the list.
For example, for the list 6, 4, 2, the rank of each number is:
| 6 | - | rank = 1 |
| 4 | - | rank = 2 |
| 2 | - | rank = 3 |
Function Description
The Excel RANK.EQ function returns the statistical rank of a given value, within a supplied array of values. If there are duplicate values in the list, these are given the same rank.
The Rank.Eq function is new in Excel 2010, and so is not available in earlier versions of Excel. However, the function is simply an updated version of the Rank function, which is available in earlier versions of Excel.
The syntax of the Rank.Eq function is:
RANK.EQ( number, ref, [order] )Where the function arguments are:
| number | - | The value for which you want to find the rank. | ||||||
| ref | - | An array of values containing the supplied number. | ||||||
| [order] | - | An optional argument that defines whether the supplied ref array should be ordered in ascending or descending order. The [order] argument can have the value 0 or 1, meaning:
|
The Rank.Eq and Rank.Avg functions are both new to Excel 2010. The difference between these two functions occurs when there are duplicates in the list of values. The Rank.Eq function returns the lower rank, whereas the Rank.Avg function returns the average rank.
For example, in the list of values 4, 5, 5, 6 (in ascending order), the value '5' occupies the 2nd and 3rd positions. Therefore, when calculating the rank of the value 5:
- RANK.EQ returns the rank 2
- RANK.AVG returns the rank 2.5
Both the Rank.Eq and the Rank.Avg function return a rank of 4 for the value 6.
Rank.Eq Function Examples
The following spreadsheet shows four examples of the Excel Rank.Eq Function, used to calculate the rank of values within the array {1, 11, 8, 9, 2, 5, 9}.
Formulas:
| Results:
|
Note that, in the above examples:
- In cells B1, B3 & B4, the [order] argument is omitted. Therefore, the Rank.Eq function uses the descending array, 11, 9, 9, 8, 5, 2, 1.
- In cell B2, the [order] argument is equal to 1. Therefore, the Rank.Eq function uses the ascending array, 1, 2, 5, 8, 9, 9, 11.
- The supplied array contains two values equal to 9, which occupy positions 2 and 3 when the array is ranked in descending order. In this case, the Rank.Eq function returns the rank 2 for the value 9 (see the example in cell B3), and the next value, 8, has rank 4 (see cell B4).
For further information and examples of the Excel Rank.Eq function, see the Microsoft Office website.
Rank.Eq Function Error
If you get an error from the Excel Rank.Eq function this is likely to be the #N/A error:
Common Error| #N/A | - | Occurs if the supplied number is not present within the supplied ref. (Note that the Rank.Eq function does not recognise text representations of numbers as numeric values, so you will also get the #N/A error if the values in the supplied ref array are text values). |
Từ khóa » Hàm Rank.eq
-
RANK.EQ (Hàm RANK.EQ) - Microsoft Support
-
Hàm RANK.EQ - Hàm Trả Về Thứ Hạng Của Một Số Trong Một Danh ...
-
How To Use The Excel RANK.EQ Function - Exceljet
-
Chia Sẻ Cách Sử Dụng Hàm Rank.eq Trong Excel
-
Xếp Hạng Theo điều Kiện Trong Excel - Phần 1
-
Hàm RANK Trong Excel Và Các ứng Dụng - Es-Glocal
-
Hàm Rank Trong Excel - Các Ví Dụ Về Cách Sử Dụng ... - Ben Computer
-
Hàm RANK Dùng để Làm Gì? Hướng Dẫn Sử Dụng Hàm RANK
-
Xếp Hạng Kết Quả Trong Excel Trong 1 Phút Với Hàm RANK
-
RANK.EQ - DAX Guide
-
Sử Dụng Hàm RANK Trong Excel để Xếp Hạng, Bạn đã Biết Cách?
-
Cách Sử Dụng Hàm RANK Trong Excel để Xếp Hạng Nhanh Chóng
-
How To Use The RANK.EQ Function In Google Sheets - InfoInspired