+ Reply to Thread
Results 1 to 3 of 3

Ranking data based on a second column data

  1. #1
    Registered User
    Join Date
    06-07-2010
    Location
    San Angelo, Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Ranking data based on a second column data

    I have attached a pic of the sheet I am working on.

    In this spreadsheet, column D indicates if the shooter is in the "H" hunter class, or "B" benchrest class. I want to rank the scores in column S based on the class that they are in. Is there a way I can enter a formula in column S that will do this without having to sort the table first? Note: The ranking will be from first to last, or 1 to whatever, based on the highest score in column R..
    Attached Images Attached Images
    Last edited by rylo; 06-08-2010 at 05:52 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Ranking data based on a second column data

    Hi

    S104: =SUMPRODUCT(--($D$104:$D$108=D104),--($R$104:$R$108<R104))+1

    Copy down to S108.

    Or if you want to include the class code with the ranking then how about:
    S104: =D104&SUMPRODUCT(--($D$104:$D$108=D104),--($R$104:$R$108<R104))+1

    HTH

    rylo

  3. #3
    Registered User
    Join Date
    06-07-2010
    Location
    San Angelo, Texas
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Ranking data based on a second column data

    rylo,

    I saw that code in a couple other places on this site, but I didn't think it was what I needed. I put it in my sheet and it worked perfectly. I really appreciate your assistance.

+ 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