Excel functions / Maths & statistics

RANK

Returns the position of a number within a list, such as 1st, 2nd or 3rd.

Syntax=RANK(number, ref, [order])

Arguments

numberThe value to rank.
refThe list to rank it against.
orderOptional. Leave out or 0 for largest first; 1 for smallest first.

How it works

RANK tells you where a value places in a list. By default the biggest number is ranked 1, which suits sales leagues and scores. Use order 1 for times or costs, where smaller is better.

Example

E2=RANK(C2,$C$2:$C$5)
ABCDE
1RegionRepSales
2EastAna5002
3WestBen300
4EastCal250
5WestDee700
6

Result: 2. Ana's 500 is the 2nd highest. The $ signs keep the list fixed when the formula is copied.

Tips

Practise RANK

Try it yourself in a real spreadsheet, with instant feedback on every answer.

Start the exercise

Related