+ Reply to Thread
Results 1 to 4 of 4

Ranking data with multiple columns

  1. #1
    Registered User
    Join Date
    07-08-2010
    Location
    Wicklow, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    9

    Ranking data with multiple columns

    Hi, I have a spreadsheet with values as per below
    I can rank the data based on descending values in Columns B & C using the formula in cell B2
    =RANK(B2,$B$2:$B$11)+SUMPRODUCT(--($B$2:$B$11=B2),--($C$2:$C$11>C2))

    What I trying to do is also rank the data based on the values in column D as an additional tie-breaker, any thoughts?
    Thanks

    Rank Score 1 Score 2 Score 3
    1 41 23 15
    2 40 24 20
    2 40 24 22
    4 40 20 30
    5 39 20 15
    6 38 20 16
    7 38 19 15
    8 38 18 16
    9 36 19 15
    10 35 19 16

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Ranking data with multiple columns

    If D column is ascending too then try this version

    =RANK(B2,$B$2:$B$11)+SUMPRODUCT(--($B$2:$B$11=B2),--($C$2:$C$11>C2))+SUMPRODUCT(--($B$2:$B$11=B2),--($C$2:$C$11=C2),--($D$2:$D$11>D2))

    for descending change the final > to <
    Audere est facere

  3. #3
    Registered User
    Join Date
    07-08-2010
    Location
    Wicklow, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Ranking data with multiple columns

    Excellent, that's exactly what I was trying to do. Thanks for your help

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Ranking data with multiple columns

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] 2007 ranking over multiple columns
    By kamelkid2 in forum Excel General
    Replies: 3
    Last Post: 11-29-2012, 10:39 AM
  2. Ranking Multiple Columns(3)
    By Bullfn33 in forum Excel General
    Replies: 2
    Last Post: 08-06-2011, 10:33 PM
  3. Sort order (ranking) for miltiple columns of data
    By plannerg in forum Excel General
    Replies: 2
    Last Post: 10-19-2010, 07:02 AM
  4. [SOLVED] Ranking columns of data in a series of matrices
    By Graham Whitehead in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2006, 05:15 AM
  5. Ranking multiple columns by 1000th inch
    By chappo555 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-06-2006, 12:45 PM

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