• Ranking based on a cell value

    Author
    Topic
    #459313

    I have a set of data…

    Trigger cell Total Rank Rank Males Rank Females
    Concept 1 3 4 1
    Concept 2 2 2 2
    Concept 3 4 1 3
    Concept 4 1 3 4

    In the trigger cell i want to enter 1, 2 or 3 and have the 4 rows below sort from lowest to highest (1 to 4). So if the trigger cell (A1) has a 1 in it i want to return…

    Concept 4 1
    Concept 2 2
    Concept 1 3
    Concept 3 4

    If the trigger cell has a 2 then i want…

    Concept 3 1
    Concept 2 2
    Concept 4 3
    Concept 1 4

    Is this possible to do in formulas? Thank you for the help.

    Viewing 1 reply thread
    Author
    Replies
    • #1157870

      Perhaps the formula posted by Steve in Post 770792 might help you [post=”770792″]Excel formula,If and Rank[/post]

      Regards,

      Tom Duthie

    • #1157878

      If your data starts in cell A1 and cell E1 contains the number:

      =INDEX($A$1:$A$4,MATCH(SMALL(OFFSET($A$1:$A$4,0,E1),ROW($A$1:$A$4)),OFFSET($A$1:$A$4,0,E1),0))

      (Array formula, enter using control+shift+enter)

      • #1157887

        Sorry, I’m not quite sure how to use this formula. I’m uploading a file and put the trigger cell in A1. The formula is in F3. Thank you for the help.

        • #1157948

          In G2:
          =INDEX(B2:D2,A1)
          In G3-G6: 1,2,3,4, respectively

          In F3:
          =INDEX($A$3:$A$6,MATCH(G3,INDEX($B$3:$D$6,0,$A$1),0))

          Copy F3 to F4:F6

          Steve

    Viewing 1 reply thread
    Reply To: Ranking based on a cell value

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: