+ Reply to Thread
Results 1 to 8 of 8

Sort and Rank Data

Hybrid View

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    Rhode Island
    MS-Off Ver
    Excel 2007
    Posts
    27

    Sort and Rank Data

    What would be the easiest way to sort and assign a rank?

    On my worksheet I import three columns of info: Name, rank and team. I have a fourth column points. I then sort by rank and assign points to the top 30 only. 1st = 30, 2nd=29, etc until i reach position 30. all others below that get a 0. I have been doing this manually, what would be an easier way so I could set up all the worksheets prior and then just import the data? What function would work?

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Sort and Rank Data

    What about using the RANK formula?
    Click on star (*) below if this helps

  3. #3
    Registered User
    Join Date
    01-31-2013
    Location
    Rhode Island
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Sort and Rank Data

    Tried but I can't get it to work. Must be inputting formula incorrect. if rank is in column c and I want the descending number assigned to the rank in column d ( 1=30, 2=29, etc.) how would I write that?

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Sort and Rank Data

    Sample Data?

  5. #5
    Registered User
    Join Date
    01-31-2013
    Location
    Rhode Island
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Sort and Rank Data

    Here is the worksheet. I trying to use the rank column data and assign the points value in the points column. 1 = 30, 2 = 29, etc.

    Rank.xlsx

  6. #6
    Registered User
    Join Date
    12-18-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Sort and Rank Data

    How about creating a ghost table
    1 = 30
    2 = 29
    3 = 28 and so on
    and then just use vlookup function

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Sort and Rank Data

    Try this in D, copied down...

    =IF(RANK(B2,$B$2:$B$74,1)>30,"",30-RANK(B2,$B$2:$B$74,1)+1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Sort and Rank Data

    Try this spreadsheet
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1