Returns the rank of a number in a list of numbers.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
RANK(number, ref, [order])The RANK function determines the size of a number relative to other values in a list. If multiple values have the same rank, the function assigns the same rank to each, but the presence of these values affects the ranks of subsequent numbers.
=RANK(A2, $A$2:$A$6)ผลลัพธ์: 1
Ranks the value in A2 against the range A2:A6 in descending order.
The RANK function assigns the same rank to both numbers, but it will skip the next rank in the sequence.