Urutkan suatu angka berdasarkan rentang angka
=RANK(number, ref, [order])
| Parameter | Deskripsi |
|---|---|
number |
The number to rank. |
ref |
A range that contains numbers to rank against. |
order |
[optional] Whether to rank in ascending or descending order. |
The basic syntax for RANK looks like this:
=RANK(number,ref,[order])
The rank function has two modes of operation, descending and ascending, which are controlled by the order argument. To rank values where the largest v
=RANK(A1,range) // rank descending (default)
=RANK(A1,range,0) // rank descending
To rank values where the smallest value should be 1, set order to 1:
=RANK(A1,range,1) // rank ascending
In the worksheet below, the goal is to rank test scores. For test scores, the highest score should be assigned a rank of 1, so the RANK function is us
=RANK(C5,$C$5:$C$12)
In the example below, the goal is to rank race times. This is an example of where we want to assign a rank of 1 to the fastest time, which will be the
=RANK(C5,$C$5:$C$12,1)