Bird
Raised Fist0
Excelspreadsheet~10 mins

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

Choose your learning style10 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).

Practice

(1/5)
1. What does the Excel RANK function do?
easy
A. It adds all numbers in a list.
B. It finds the position of a number in a list.
C. It counts how many numbers are in a list.
D. It finds the average of numbers in a list.

Solution

  1. Step 1: Understand the purpose of RANK

    The RANK function returns the position of a number compared to others in a list.
  2. Step 2: Compare with other options

    Options A, C, and D describe sum, count, and average, which are different functions.
  3. Final Answer:

    It finds the position of a number in a list. -> Option B
  4. Quick Check:

    RANK = position in list [OK]
Hint: RANK shows where a number stands in a list [OK]
Common Mistakes:
  • Confusing RANK with SUM or COUNT functions
  • Thinking RANK calculates averages
  • Assuming RANK sorts the list
2. Which of these is the correct syntax for the RANK function in Excel?
easy
A. =RANK(number, ref, order)
B. =RANK(ref, number, order)
C. =RANK(number, order, ref)
D. =RANK(order, number, ref)

Solution

  1. Step 1: Recall RANK function syntax

    The correct syntax is =RANK(number, ref, order), where 'number' is the value to rank, 'ref' is the list, and 'order' is optional.
  2. Step 2: Check each option

    Only =RANK(number, ref, order) matches the correct order of arguments.
  3. Final Answer:

    =RANK(number, ref, order) -> Option A
  4. Quick Check:

    Syntax = RANK(number, ref, order) [OK]
Hint: Remember: number first, then list, then order [OK]
Common Mistakes:
  • Swapping number and list arguments
  • Placing order argument before list
  • Forgetting order is optional
3. Given the list {50, 80, 80, 30, 90}, what is the result of =RANK(80, A1:A5, 0) if these values are in cells A1 to A5?
medium
A. 2
B. 3
C. 1
D. 4

Solution

  1. Step 1: Understand RANK with order 0 (descending)

    Order 0 ranks highest number as 1. The list sorted descending is 90 (1), 80 (2), 80 (2), 50 (4), 30 (5).
  2. Step 2: Find rank of 80

    Both 80s share rank 2 because they tie. So RANK(80) = 2.
  3. Final Answer:

    2 -> Option A
  4. Quick Check:

    80 is second highest, so rank = 2 [OK]
Hint: Order 0 means highest number gets rank 1 [OK]
Common Mistakes:
  • Assuming ranks increase by 1 after ties
  • Confusing ascending and descending order
  • Ignoring ties and giving different ranks
4. You used the formula =RANK(A2, A1:A5, 1) but got unexpected ranks. What is the likely error?
medium
A. RANK function does not accept the order argument.
B. The order argument should be 0 for ascending rank.
C. The range A1:A5 includes the cell A2 itself.
D. The order argument 1 means ascending rank, but you expected descending.

Solution

  1. Step 1: Understand order argument meaning

    Order 1 means ascending rank (lowest number is rank 1). If you expected highest number as rank 1, order should be 0.
  2. Step 2: Identify mismatch in expectation

    The unexpected ranks happen because order 1 ranks lowest first, opposite of what was expected.
  3. Final Answer:

    The order argument 1 means ascending rank, but you expected descending. -> Option D
  4. Quick Check:

    Order 1 = ascending, check expectation [OK]
Hint: Order 1 ranks lowest first; use 0 for highest first [OK]
Common Mistakes:
  • Confusing order 0 and 1 meanings
  • Thinking order argument is optional but needed
  • Including the cell itself in the range causes no error
5. You have scores in cells A1:A6: 85, 92, 85, 70, 92, 60. You want to rank the score in A3 using =RANK(A3, A1:A6, 0). What rank will it show and why?
hard
A. 1, because 85 is the highest score
B. 2, because 85 is the second highest unique score
C. 3, because 92 is rank 1, 85 is rank 3 with ties sharing rank
D. 4, because ties increase rank numbers

Solution

  1. Step 1: Sort scores descending and assign ranks

    Scores sorted: 92 (rank 1), 92 (rank 1), 85 (rank 3), 85 (rank 3), 70 (rank 5), 60 (rank 6).
  2. Step 2: Find rank of score in A3 (85)

    Since 85 appears twice, both get rank 3. Ties share the same rank, and ranks after skip numbers.
  3. Final Answer:

    3, because 92 is rank 1, 85 is rank 3 with ties sharing rank -> Option C
  4. Quick Check:

    Ties share rank, next rank skips numbers [OK]
Hint: Ties share rank; next rank skips numbers [OK]
Common Mistakes:
  • Assuming ranks increase by 1 after ties
  • Ignoring ties and giving different ranks
  • Confusing rank order with ascending instead of descending
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard