Forum Discussion

Rich Uncle's avatar
Rich Uncle
Copper Contributor
Jun 05, 2018
Solved

Cell Format within ABCD

Hi   I have some worksheet to do about the ranking of the schedule and number as reference, the steps is start from X,Y,Z. now i have done format for the X value (picture attach) for the ranking wi...
  • Arul Tresoldi's avatar
    Jun 06, 2018

    If I understood right, you want to rank A B C D looking at X value; if there's a tie between any X, you check Y, then Z.

     

    How many groups (A B C...) are you going to have in general? 4? Or they can be 10, 200, 5000?

     

    I created something you should check.

     

    Try change values in green cells, and check the red ones (do not overwrite red cells!). Is that the right way to check the rankings?

     

    At the end, you should hide columns F to J (so you won't see the calcs).

     

    What I did:

    First, I ranked X, Y and Z in 3 different columns (F G H).

    Second, I "merged" the 3 rankings adding rank(X) + rank(Y)/10 + rank(Z)/100; in this way I have a number like 1,14 for the Team A. 1,14 means that X value is ranked 1°, Y is 1° and Z is 4°.

    If you'll have 10 to 99 groups (letters, in your example), you have to switch that formula to: rank(X) + rank(Y)/100 + rank(Z)/10000 obtaining 1,0104.

    Changing that dividers allows the bottom ranking of 99,9999 (X 99°, Y 99°, Z 99°).

    In general, you should count the last position available and adjust the number of 0 in that formula.

    I called the I column "tot. rank" meaning the sum of these rankings (now you have to forget the points, we're talking about rankings and orders).

    Now, because 1 is the best ranking, you have to sort these "tot. rank" in a new column "Rank of Totals", but you have to sort them starting from the smallest so the new formula is rank(value;all cells;1): the last "1" means that you want to have first the smallest value (1° is 1 and it's better and smaller than 5° that is 5).

Resources