0
0
Excelspreadsheet~10 mins

RANK function in Excel - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This table shows test scores in column A. We want to find the rank of each score in column B using the RANK function.

CellValue
A1Scores
A285
A392
A475
A592
A668
B1Rank
B2
B3
B4
B5
B6
Formula Trace
=RANK(A2, $A$2:$A$6, 0)
Step 1: RANK(85, {85, 92, 75, 92, 68}, 0)
Cell Reference Map
    A     |    B    
---------------------
1 | Scores |  Rank   
2 |  85    |  -> formula here
3 |  92    |         
4 |  75    |         
5 |  92    |         
6 |  68    |         

Arrows: B2 formula uses A2 and range A2:A6
The formula in B2 uses the value in A2 and the range A2:A6 to calculate the rank.
Result
    A     |    B    
---------------------
1 | Scores |  Rank   
2 |  85    |    4    
3 |  92    |         
4 |  75    |         
5 |  92    |         
6 |  68    |         

Cell B2 shows the rank of score 85 as 4.
The rank of 85 among the scores is 4, so cell B2 shows 4.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the RANK function compare to find the rank of 85?
AIt compares 85 only to A2
BIt compares 85 to scores in B2:B6
CIt compares 85 to all scores in A2:A6
DIt compares 85 to the average of scores
Key Result
RANK(value, range, order) returns the position of value in range sorted by order (0=descending, 1=ascending).