• Ranking horizontally formula (Excel 2003)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Ranking horizontally formula (Excel 2003)

    Author
    Topic
    #454211

    Is there a way to rank rows 2:5 of the attached to make them like rows 11:14. I need to sorty by row 2, highest value in column B, next highest in column C. Is there an index or match formulas to do this in Excel 2003? Thanks

    Viewing 0 reply threads
    Author
    Replies
    • #1126895

      You can select range A1:M5.
      Select Data | Sort…
      Click Options…
      Specify that you want to sort from left to right and click OK.
      Specify that you want to sort on Row 2, descending.
      Click OK.

      • #1126943

        Is there a way to do it with formulas? I need to do several like this that will automatically update. Thanks for the help.

        • #1126946

          You’d need two ranges for each table: one with the unsorted data and one with formulas that sort the data. That doesn’t seem very attractive to me.

          You could record a macro that sorts the data, and modify it to suit your needs.

          • #1126954

            actually, the ugly way is what I need. A macro won’t work for my purposes. Thanks – Joan

            • #1126965

              You can use a combination of MATCH, LARGE and COLUMN to find where the n-th largest item is, and then use INDEX to return the corresponding item in another row, but since there are ties, it gets pretty hairy MATCH doesn’t distinguish between tied values. A macro would be MUCH more convenient here.

            • #1126971

              How about this. This is an approach similar to what Hans alludes to.

              Row 1 has an adjusted value. It rounds the percentage in row 2 to 4 decimals and then add the row as the next 3 decimals (thus there are no ties). It then looks up where the column for the largest 1st, 2nd 3rd, etc values. Using this column number it indexes from each row to pull up the data from that column.

              So it has the original 4 rows, the 4 output rows, and 2 additional rows.

              Steve

            • #1126987

              ahhh, perfecto!

    Viewing 0 reply threads
    Reply To: Ranking horizontally formula (Excel 2003)

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

    Your information: