Results 1 to 10 of 10

RANK SORTBY Results in Ascending Order

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-04-2023
    Location
    Detroit, Michigan
    MS-Off Ver
    365
    Posts
    184

    RANK SORTBY Results in Ascending Order

    I came across a problem that I thought should be a simple formula, but it's not returning the desired result. And I can't seem to figure it out.

    In column C (listed under P#) is the player's number of each contestant in a game.

    In column D (listed under A) are the players' rating for that category.

    In column E (listed under B) is another rating for the players in a separate category.

    In column G is the result of P# being sorted by A and then by B in ascending order.

    In columns J and K are the mock up results I'm seeking.

    Because of how I've sorted the players with the SORTBY function in column G, player #2 is at the top. That's because of the players earned the highest rating (7) in Category A, #2 has the highest rating among them in Category B. So he gets the highest rank rating of 10, shown in column K.

    A few things to note:

    I want to sort and rank so that the highest is shown as a 10, not a 1. So I believe sorting in ascending is the way to accomplish that.

    Also, please note: Players #1, #3 and #10 all received a 0 in Category A and in B, players #1 and #10 both received an 84, while player #3 has a lower score for B (80). Therefore, in my mock up results, I have players #1 and #10 tied for the 3 rank instead of ranking them 3 and 2. And player #3 getting the lowest rank score of 1. This is how the RANK function would rank them if the scores in A and B were added together and then ranked in ascending order.

    But here is the problem:

    I can't do it that way because notice how the sum of A and B for players #3 and #6 = 80. The sum is the same but they should not be ranked the same, because player #6 has a 2 in Cat. A and my SORTBY function in column G is sorting by A first, then by B.

    More examples: Look at player #4, his total is 84, which is the same total that #1 and #10 have. But player #4 is ranked 5 due to him having a 2 for category A.

    Also, look at Player #9, he has the highest sum of A and B and also has the highest score in Category B, but I have him ranked 8 (third highest) because in category A, two other players have a 7 in that category and he only earned a 5.

    So basically what I'm trying to do is RANK the results of the SORTBY results but because of the issues I jest mentioned, I can't use the sum of A and B to rank them.

    I'm hoping I've explained this well enough so that one of the experts here can see what I'm trying to do and write a formula that can rank the players like I have shown in columns J and K.

    I appreciate any help you can offer. Thank you.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by JN831; 04-27-2024 at 09:32 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 03-29-2024, 01:54 AM
  2. Replies: 8
    Last Post: 06-06-2023, 12:24 AM
  3. [SOLVED] Extract and sortby in descending order
    By paradise2sr in forum Excel General
    Replies: 5
    Last Post: 01-09-2022, 05:19 AM
  4. [SOLVED] Rank/Order including manual overriding rank/order input
    By 77highland in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-15-2021, 06:38 PM
  5. Rank by Descending, then if tie, rank by Ascending
    By lloyd2709 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-01-2021, 03:34 AM
  6. [SOLVED] Formula for making numbers in random order change to ascending order
    By bansche123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2021, 09:18 AM
  7. Rank values in ascending order
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-10-2011, 02:56 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