+ Reply to Thread
Results 1 to 17 of 17

Formula for Employee win loss scores

  1. #1
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Formula for Employee win loss scores

    In the workbook below I'm looking to find a formula in column AD & AE that will show how many times a specific employee of the associate level wins and loses against senior level employees in their test scores.

    I'm also looking to find out how many times the same employee when ranked as a senior level employee beats associate level employees in columns AI & AJ.

    Take for example the employee Anthony:

    When ranked as an associate level employee (Columns AD & AE)
    1. How many times has Anthony won when competing against a senior level employee (not a specific senior level employee, but senior level employees as a whole)? Cell X30 shows that Anthony beat a senior level employee in 1991 so AD4 will display 1.

    2. How many times has Anthony lost when competing against a senior level employee (not a specific senior level employee, but senior level employees as a whole)? Cells X20 & X29 show that Anthony has lost in 1989 and 1991 so AE4 will display 2.

    When ranked as an Senior level employee (Columns AI & AJ)
    1. How many times has Anthony won when competing against an associate level employee (not a specific associate level employee, but associate level employees as a whole)? Cell V26 shows that in 1990 Anthony won so cell AI will display 1.

    2. How many times has Anthony lost when competing against a associate level employee (not a specific associate level employee, but associate level employees as a whole)? Cells V4, V31, V32, V33, V34 all show that Anthony has lost so AJ4 will display 5.

    My only requirements:
    Cells in AD,AE, AI, & AJ remain blank if there aren't wins or losses and that they are able to take the increase in the range T:AA as time moves forward.

    Big thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,409

    Re: Formula for Employee win loss scores

    In AD4

    =SUMPRODUCT(($X$4:$X$100=$AC4)*($Z$4:$Z$100>$Y$4:$Y$100))

    in AE4

    =SUMPRODUCT(($X$4:$X$100=$AC4)*($Z$4:$Z$100<$Y$4:$Y$100))

    In AI4

    =SUMPRODUCT(($V$4:$V$100=$AH4)*($Y$4:$Y$100>$Z$4:$Z$100))

    in AJ$

    =SUMPRODUCT(($V$4:$V$100=$AH4)*($Y$4:$Y$100<$Z$4:$Z$100))

    You can "hide" the zeros by CUSTOM format as 0;;;@

    Extend 100 to a sensible maximum
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,299

    Re: Formula for Employee win loss scores

    Or using COUNTIFS:

    AD$ =COUNTIFS($X:$X,$AC4,$AA:$AA,"<0")

    AE4 =COUNTIFS($X:$X,$AC4,$AA:$AA,">0")

    AF4 =IFERROR(100*AD4/SUM(AD4:AE4),"")

    and similarly (with > and < reversed) for the other columns.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,705

    Re: Formula for Employee win loss scores

    The only additional thought I have is to change the range T3:AA135 into a table. The formulas are then adjusted so that they reference the expanding fields in the table.
    For an example the formula for Associate Level winning would be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Formula for Employee win loss scores

    how do you keep the cells blank if the result is 0? I'd prefer them to remain empty unless there is a win or loss

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,299

    Re: Formula for Employee win loss scores

    Dunno who you were "talking" to. But as JT said, apply this as custom formatting: 0;;;@
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Formula for Employee win loss scores

    Thank you very much, to all three of you!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,299

    Re: Formula for Employee win loss scores

    Thanks for the feedback, Rachel.

  9. #9
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Formula for Employee win loss scores

    in my final draft of the workbook i have two sheets such as the table that Jete uses from range T:AA is on one page while AC:AK is on a separate. When entering the formula as shown in the workbook it returns a 0 value in all cells where a win or a loss does not occur. How can i remove that?

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,299

    Re: Formula for Employee win loss scores

    Without seeing what you have done... how can we tell?? As long as the formulae are pointing to the correct sheet, it should all be OK.

  11. #11
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Formula for Employee win loss scores

    Okay scratch that, i fixed it. However, let me ask about the win % column. How can i alter the formula to allow for 0% when an employee has losses, but no wins? I still want the column to allow for blank cells when an employee doesn't have any wins or losses (ergo they haven't competed yet).

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,705

    Re: Formula for Employee win loss scores

    Glen's formula does that:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,299

    Re: Formula for Employee win loss scores

    Scrap the fancy formatting. calculate the % win as:

    =IFERROR(100*COUNTIFS($X:$X,$AC4,$AA:$AA,"<0")/(COUNTIFS($X:$X,$AC4,$AA:$AA,"<0")+COUNTIFS($X:$X,$AC4,$AA:$AA,">0")),"")

    and then variants of this for the individual scores:

    =IF(ISNUMBER(AF4),COUNTIFS($X:$X,$AC4,$AA:$AA,"<0"),"")
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Formula for Employee win loss scores

    If at a later time i convert T:AA into a table will it have any negative effects on the formulas you have shown?

    In column AD i only want numbers >0 to show. Everything else remains empty.

    In column AE i only want numbers >0 to show. Everything else remains empty.

    In column AF i only want percents shown when an employee has competed albeit 0 if they have competed but only have lost, or the difference between when they have competed and have either won and loss or only won. Everything else remains empty.

    Column AF in the most recent reply by Glenn shows correctly, but columns AD & AE indicate zeros which i would prefer to remain empty.

    *one final question, what can cause scrolling from cell to cell to lag? My document has many sheets, but the overall size of the workbook is less than a single MB.
    Last edited by RachelMads02; 04-16-2017 at 03:40 PM.

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,299

    Re: Formula for Employee win loss scores

    Now you have me confused. What is different from what you now want with what is in Post 6?

    it would also be helpful, if you would address your comments to the person to whom (if any of us...) you are specifically referring....

  16. #16
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Formula for Employee win loss scores

    Quote Originally Posted by Glenn Kennedy View Post
    Now you have me confused. What is different from what you now want with what is in Post 6?

    it would also be helpful, if you would address your comments to the person to whom (if any of us...) you are specifically referring....
    I figured it out. There were different replies that contained different formulas so i used a combination of them to solve the problem. Everything is good other than the lag issue

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,299

    Re: Formula for Employee win loss scores

    I'm now away for the night. I didn't see much lab. Can you post your final sheet?

+ 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. Help with win loss and tie column & adding profit based on win or loss.
    By schroeder641 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2016, 03:41 PM
  2. [SOLVED] I need a macro to select range of scores, choose the best scores and apply a formula
    By hadleedog in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2015, 03:15 PM
  3. Replies: 8
    Last Post: 12-20-2014, 04:37 PM
  4. [SOLVED] Trading Spreadsheet - Random win/loss outcome against established Win/Loss %
    By cruze2005 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-18-2014, 05:08 AM
  5. Replies: 1
    Last Post: 06-15-2013, 09:02 PM
  6. Scores & Win/Loss tracking
    By SparqMan in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-18-2009, 03:11 AM
  7. Employee Loss Of Pay(LOP)
    By manju in forum Excel General
    Replies: 4
    Last Post: 03-28-2008, 09:44 AM

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