This browser does not support basic Web standards, preventing the display of our site's intended design. May we suggest that you upgrade your browser?

Microsoft Excel XP/X

Rank

The Rank function returns the rank of a value within a list. This function is useful when you need to maintain a sort based on another column and/or you want to determine the rank of items in more than one column.

This document will use the example of a gradebook which is sorted alphabetically by student last name. In the example, we want to find the rank of the Quiz 1 score of 47 for Chris Student. Scores on Quiz 1 ranged from 60 to 23.
Sample Gradebook image

Windows:

  1. Open the desired worksheet

  2. Select the cell where you would like the result of the function to appear

  3. From the Insert menu, select Function...
    OR
    From the Formula bar, click INSERT FUNCTION insert function button
    The Insert Function dialog box appears.

  4. From the Or select a category pull-down list, select All or Statistical

  5. From the Select a function scroll box, select RANK

  6. Click OK
    The Function Arguments dialog box appears.
    Function Arguments dialog box for RANK

  7. In the Number text box, type the value that you want to know the rank of
    EXAMPLE: Type 47

  8. In the Ref text box, type the cell range to include
    EXAMPLE: C2:C6
    OR
    1. Click COLLAPSE DIALOG collapse dialog box button
    2. Select the cells to include
      A dashed border appears round the selected cells.
      EXAMPLE: C2:C6
    3. Click RESTORE DIALOGrestore dialog box button

  9. To obtain the rank of a value where the list of values is sorted in descending order, in the Order text box, type 0 or leave the text box blank
    To obtain the rank of a value where the list of values is sorted in ascending order, in the Order text box, type any nonzero value
    NOTE: This action does not sort the information in your worksheet, it is used only as a reference from which to perform the ranking.
    EXAMPLE: To find the rank of 47 when the Quiz 1 scores are sorted from high to low, type 0

  10. Click OK
    The rank appears in the selected cell and the formula appears in the Formula bar.
    EXAMPLE: Chris Student's score ranks 4th when the scores are sorted high to low (60, 54, 50, 47, 23).

Macintosh:

  1. Open the desired worksheet

  2. Select the cell where you would like the result of the function to appear

  3. From the Insert menu, select Function...
    OR
    From the Standard toolbar, click PASTE FUNCTIONPaste Function button
    The Paste Function dialog box appears.

  4. From the Function category scroll box, select All or Statistical

  5. From the Function name scroll box, select RANK

  6. Click OK
    The Rank dialog box appears.
    Rank dialog box

  7. In the Number text box, type the value that you want to know the rank of
    EXAMPLE: Type 47

  8. In the Ref text box, type the cell range to include
    EXAMPLE: C2:C6
    OR
    1. Click COLLAPSE DIALOGCollapse Dialog button
    2. Select the cells to include
      A dashed border appears round the selected cells.
      EXAMPLE: C2:C6
    3. Click RESTORE DIALOGRestore Dialog button

  9. To obtain the rank of a value where the list of values is sorted in descending order, in the Order text box, type 0 or leave the text box blank
    To obtain the rank of a value where the list of values is sorted in ascending order, in the Order text box, type any nonzero value
    NOTE: This action does not sort the information in your worksheet, it is used only as a reference from which to perform the ranking.
    EXAMPLE: To find the rank of 47 when the Quiz 1 scores are sorted from high to low, type 0

  10. Click OK
    The rank appears in the selected cell and the formula appears in the Formula bar.
    EXAMPLE: Chris Student's score ranks 4th when the scores are sorted high to low (60, 54, 50, 47, 23).

Excellence. Our Measure. Our Motto. Our Goal.