+ Reply to Thread
Results 1 to 10 of 10

Formula to get a ranking based on three columns

  1. #1
    Registered User
    Join Date
    01-09-2024
    Location
    london, england
    MS-Off Ver
    16.0.17307.42304
    Posts
    4

    Exclamation Formula to get a ranking based on three columns

    So I need a formula to get the ranking for employee, based on three categories: MPOR (most important), Cleanliness Rate, and lastly by attendance rate).

    I am currently using the formula: =RANK.EQ(P3,P$3:P$13,1)+SUMPRODUCT((P$3:P$13=P3)*(R$3:R$13>R3))+SUMPRODUCT((P$3:P$13=P3)*(R$3:R$13=R3)*(Q$3:Q$13>Q3)Column)
    Column P=MPOR Data
    Column Q=Attendance
    Column R= Cleanliness

    As of now, if i change number under Column Q and R, it does not affect the rank number. It seems only Column P and the value in those boxes affects the ranking?


    Attachment 855172
    Last edited by hostmd; 01-15-2024 at 01:59 AM.

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,846

    Re: Formula to get a ranking based on three columns

    It would be much easier for us if you attached a sample file. Please read the yellow banner at the top of the page to do this. Also, please update your profile with your actual Excel version ("Current" is not a version).

  3. #3
    Registered User
    Join Date
    01-09-2024
    Location
    london, england
    MS-Off Ver
    16.0.17307.42304
    Posts
    4

    Re: Formula to get a ranking based on three columns

    I use Excel on the web. Excel for the web is part of the Microsoft 365 subscription suite of online apps. It updates to the most current version automatically every time you log in.

    Build #16.0.17307.42304

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,846

    Re: Formula to get a ranking based on three columns

    In order for the rank to change if you change the values for Attendance or Cleanliness, you have to have 2 or more rows that have the same Combined Avg. If none of the Combined averages match, then they will never change. Say you change the combined avg in row 11 (for Tira) to match Lisa (46.97). You will see the ranks change. Then if you change the Cleanliness value for Tira to be greater than Lisa (say, 4), the ranks change. Also, in order for the rank to change if you change the Attendance rate is you need to have the cleanliness values match as well. So change the Cleanliness for Tira to 3 (so it matches Lisa). Now change the Attendance rate to a higher number than Lisa (say 80%), the ranks change.
    Maybe if you explain in detail how you want the rankings to work, we can give you a formula that will work.

  5. #5
    Registered User
    Join Date
    01-09-2024
    Location
    london, england
    MS-Off Ver
    16.0.17307.42304
    Posts
    4
    Quote Originally Posted by Gregb11 View Post
    In order for the rank to change if you change the values for Attendance or Cleanliness, you have to have 2 or more rows that have the same Combined Avg. If none of the Combined averages match, then they will never change. Say you change the combined avg in row 11 (for Tira) to match Lisa (46.97). You will see the ranks change. Then if you change the Cleanliness value for Tira to be greater than Lisa (say, 4), the ranks change. Also, in order for the rank to change if you change the Attendance rate is you need to have the cleanliness values match as well. So change the Cleanliness for Tira to 3 (so it matches Lisa). Now change the Attendance rate to a higher number than Lisa (say 80%), the ranks change.
    Maybe if you explain in detail how you want the rankings to work, we can give you a formula that will work.

    Thank you for explaining it! My goal here is to have their overall ranking based on those three factors. I’m not sure i explained it in a clearly manner. But I would like their overall ranking weighted on those 3 categories: their mpor, their attendance and their cleanliness score. Business hrs are tight right now and this would help me schedule accordingly

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,846

    Re: Formula to get a ranking based on three columns

    You're not giving enough detail. First, is the Combined Average better if higher? I assume the higher the attendance rate the better. Is it the same for the Cleanliness?
    Why don't you rank all 3 and add them together (using a factor) (instead of using SUMPRODUCT). You don't say how you want to weight the rankings of each category. So lets say EXCEL was out of the picture and you had to do it by hand, what would you do? (Explain the process in words).

  7. #7
    Registered User
    Join Date
    01-09-2024
    Location
    london, england
    MS-Off Ver
    16.0.17307.42304
    Posts
    4
    Quote Originally Posted by Gregb11 View Post
    You're not giving enough detail. First, is the Combined Average better if higher? I assume the higher the attendance rate the better. Is it the same for the Cleanliness?
    Why don't you rank all 3 and add them together (using a factor) (instead of using SUMPRODUCT). You don't say how you want to weight the rankings of each category. So lets say EXCEL was out of the picture and you had to do it by hand, what would you do? (Explain the process in words).
    Combine Avg would be better if lower, attendance rate AND cleanliness if higher. Ideally I would like for all three to weight equally when ranking, but if not. Then combine average to have the most weight followed by cleanliness and lastly attendance. How would I do that? I apologize I’m not too savy on excel

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,846

    Re: Formula to get a ranking based on three columns

    Well, 1 way is to rank each category and add them up and the one with the lowest ranking wins.
    =RANK.EQ([@[COMBINED AVG.]],[COMBINED AVG.],1)+RANK.EQ([@[ATTENDANCE RATE]],[ATTENDANCE RATE],0)+RANK.EQ([@[Cleanliness AVG.]],[Cleanliness AVG.],0)

    Another way is to give them points for their scores that tries to even out the categories. In other words, if your Combined Avg can be between 1 and 100, and your Attendance rates between 1% and 100%, and the Cleanliness avg from 1 to 5, you could:
    1. Combined Avg - subtract it from 100 (since lower is better, this would switch the scores).
    2. Attendance rate - multiply the number by 100 (to get rid of the %)
    3. Multiply the number by 20 (to get a max of 100).

    Add up these scores and the highest number wins.

    File attached showing both options.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Formula to get a ranking based on three columns

    Continuing on the good work by Gregb11, I have added 3 attributes/fields to give flexibility in the scoring computation:
    1. Weightage in B1:D1 - the weightage to be given for each of the scores
    2. Highest possible score in B2:D2 - I am taking the maximum of available scores as the highest possible score; if the maximum score for Combined Avg. is 100 and Cleanliness Avg. is 5, then put 100 in cell B2 and 5 in cell D2
    3. Lowest possible score in B3:D3 - I am taking the minimum of available scores as the lowest possible score; if the lowest possible scores for all is 0 or 0%, then key in 0 in B3:D3
    4. Recompute percentage score for Combined Avg. in E5=(B$2-[@[COMBINED AVG.]])/(B$2-B$3), copy down
    5. Recompute percentage score for Attendance Rate in F5=([@[ATTENDANCE RATE]]-C$3)/(C$2-C$3), copy down
    6. Recompute percentage score for Cleanliness Avg. in G5=([@[Cleanliness AVG.]]-D$3)/(D$2-D$3), copy down
    7. Weighted Total Score in H5=SUMPRODUCT(Table26[@[COMBINED AVG. SCORE]:[Cleanliness AVG SCORE]],$B$1:$D$1), copy down
    8. Ranking in I5=RANK.EQ([@[Weighted Total Score]],[Weighted Total Score]), copy down

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,615

    Re: Formula to get a ranking based on three columns

    I am not clear. I have used attendance and Cleanliness add to Combined average.
    Try. In F2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel ranking based on two columns
    By carwardinet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2021, 09:33 AM
  2. [SOLVED] Ranking based on 3 columns (values)
    By jendan in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-12-2018, 06:04 AM
  3. [SOLVED] Ranking based on two columns
    By kabnt2005 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-12-2016, 08:41 AM
  4. [SOLVED] Ranking formula based on values in multiple columns taken from a different sheet
    By m_t in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-15-2016, 03:52 PM
  5. Ranking based on two columns
    By leo73pk in forum Excel General
    Replies: 6
    Last Post: 01-01-2011, 12:47 PM
  6. Ranking based on two columns
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-21-2006, 02:21 PM
  7. Ranking based on two columns
    By sa02000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2006, 01:10 PM

Tags for this Thread

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