+ Reply to Thread
Results 1 to 3 of 3

Group Cells and Rank based on values

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    14

    Group Cells and Rank based on values

    I have a worksheet with 2 rows of data. The first row contains heading information and the second row contains values. I need to rank the values and their sums while keeping the heading information attached.

    Attached is an example worksheet.

    Thanks for your help!
    Attached Files Attached Files

  2. #2
    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,049

    Re: Group Cells and Rank based on values

    in J5, use this...
    =LARGE(A3:A15,1)
    in K5, use this copied across...
    =INDEX($A$2:$F$15,MATCH($J3,$A$2:$A$15,0),MATCH(K$2,$A$2:$F$2,0))

    for the other rows, copythe above down, but change the =LARGE(A3:A15,1) to =LARGE(A3:A15,2) =LARGE(A3:A15,3) etc
    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

  3. #3
    Registered User
    Join Date
    08-28-2012
    Location
    Houston
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Group Cells and Rank based on values

    Thank you for your quick response and attention. However, I'm having some trouble with this. I used the formulas your provided but the index reference came up with a value error. I tired tweaking it a bit to make sure I was entering into the right cells but had no luck.

    I attached a new worksheet for clarification in case the previous version was not.
    Attached Files Attached Files

  4. #4
    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,049

    Re: Group Cells and Rank based on values

    the reason for the errors was that the 2nd table had moved to the right. also, i didnt realise you wanted the table sorted by the "sum" column. see if the attraqched is what you want?
    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