+ Reply to Thread
Results 1 to 15 of 15

Contest Results based on 4 Criteria

  1. #1
    Registered User
    Join Date
    07-30-2014
    Location
    Columbus
    MS-Off Ver
    2013
    Posts
    64

    Contest Results based on 4 Criteria

    Morning,

    I'm having an issue formulating results based on a different criteria. I've attached an example, and below is what I'm looking to accomplish.

    1. First Qualifier is 100% Performance to Plan (Col C.)
    2. If they are >=100% Performance to Plan (Col C.) then look at YOY Growth (%) (Col. D), this is the 1st Place Winner.
    3. If they are >=100% Performance to Plan (Col. C.), and they are not the 1st Place Winner in Col. D, then 2nd Place Winner (No repeat winner, if 1st place is same as a previous qualifier, than the 2nd place person wins that Column.
    4. If they are >=100% Performance to Plan (Col C.), and are not repeat winners in Col. D or Col. E, then the leader of Column F will be 3rd Place.

    Thanks,

    rO
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Contest Results based on 4 Criteria

    I used a helper column to determine ranking.
    In the helper column (I used H) is this formula copied down.
    =MIN(C5,1)+D5/100+F5/100000000
    That formula levels off all who scored over 100% in column C and then adds in the qualifiers for other columns. Then using a simple RANK formula in I gives the ranks
    =RANK(H5, $H$5:$H$9)
    See attachment. Is this what you are looking for? You can hide Column H if you need to.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  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 2403
    Posts
    44,002

    Re: Contest Results based on 4 Criteria

    Is your explanation complete.? I got as far as No 2 and then got confused. A clearer explanation AND a manual calculation of your EXPECTED result just might help...
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    07-30-2014
    Location
    Columbus
    MS-Off Ver
    2013
    Posts
    64

    Re: Contest Results based on 4 Criteria

    Morning Chemist,

    Thank you for your response, but I see a couple of issues.

    1. In the "helper" column, looks like the Units YOY Growth was excluded from the calculation.
    2. The logic isn't accurate in the sense that: AM 3 would be #1, which makes sense, but your rank states that AM 2 would be in 2nd, which isn't true based on the criteria attached to request.

    It's basically 4 separate calculations:
    1. Performance to Plan has to be 100%.
    2. If Perf. to Plan is 100%, then who is 1st in YOY Growth (they are 1st place winner).
    3. If Perf to Plan is 100%, and they weren't 1st in YOY Growth (which AM3 would be 1st in both Cats), then the AM that is in 1st, 2nd, in Units YOY Growth, they are the 2nd Place Winner.
    4. If all the above criteria are met and there aren't duplicating AM winners, then that Rep is 3rd Place.

    Thanks,

  5. #5
    Registered User
    Join Date
    07-30-2014
    Location
    Columbus
    MS-Off Ver
    2013
    Posts
    64

    Re: Contest Results based on 4 Criteria

    I've attached my "expected" results, I highlighted my repeat winner, which I've excluded. Thank you.
    Attached Files Attached Files

  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 2403
    Posts
    44,002

    Re: Contest Results based on 4 Criteria

    No expected results on your attached sheet...

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Contest Results based on 4 Criteria

    Did you upload the incorrect file? I don't see expected results.

  8. #8
    Registered User
    Join Date
    07-30-2014
    Location
    Columbus
    MS-Off Ver
    2013
    Posts
    64

    Re: Contest Results based on 4 Criteria

    Sorry all - yes I included the wrong file.

    Attached is the correct one.

    Thanks again
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Contest Results based on 4 Criteria

    If I'm reading this right,
    1. We are only looking at names that made or exceeded 100%. (What if only 2 names exceeded 100, is there no 3rd place? Is 3rd place then decided by highest performance (i.e 98%)?)
    2. First place is then determined by highest YoY Growth (from among all who exceeded 100% Performance)
    3. Second place is then determined by highest Units YoY (excluding first place winner of course) and totally ignoring YoY Growth.
    4. Third place is determined by ?

  10. #10
    Registered User
    Join Date
    07-30-2014
    Location
    Columbus
    MS-Off Ver
    2013
    Posts
    64

    Re: Contest Results based on 4 Criteria

    C,

    That's correct, however, it's an on-going number, because this is for a FY tracking. Currently, there are only 3 reps over 100%, however, by the time the year end there could be 50 or there could be 1.

    2. Correct.
    3. Correct.
    4. 3rd Place is determined by the highest number of entries, that doesn't repeat the other two criteria.

    To your point, if there isn't anyone that qualifies, then I would like to show a "blank" or a "NQ" showing they don't qualify for the incentive.

    Thanks

  11. #11
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Contest Results based on 4 Criteria

    If I'm understanding the progression properly, then try the formula below in H5. It should be array-entered with Ctrl + Shift + Enter instead of Enter:

    =IF($D5=MAX(($C$5:$C$9>=1)*($D$5:$D$9)),1,IF($E5=MAX(($C$5:$C$9>=1)*($E$5:$E$9)*(($D$5:$D$9)<>MAX(($C$5:$C$9>=1)*($D$5:$D$9)))),2,IF($C5>=1,3+COUNTIFS($F$5:$F$9,">"&$F5,$C$5:$C$9,">=1",$D$5:$D$9,"<>"&MAX(($C$5:$C$9>=1)*($D$5:$D$9)),$E$5:$E$9,"<>"&MAX(($C$5:$C$9>=1)*($E$5:$E$9)*(($D$5:$D$9)<>MAX(($C$5:$C$9>=1)*($D$5:$D$9))))),"NQ")))

    Fill down through H9. For a bigger range, obviously you'll need to change the "$9"s in the formula to whatever your true bottom entry is. I've been experimenting with changes in your data and the formula appears to hold up, but test it out to see if it works for you.
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  12. #12
    Registered User
    Join Date
    07-30-2014
    Location
    Columbus
    MS-Off Ver
    2013
    Posts
    64

    Re: Contest Results based on 4 Criteria

    CAtosh,

    Pretty amazing stuff there. This is 95% complete, but I do have a follow up for you.

    Can you assume that in column F, there is a "blank" in one of the reps, how will this factor into the formula?

    Also, I've went through this a couple of time and can't find a mistake on my part, but it's not ranking them, however, for those that qualify it's showing a "1" next to their name as a ranker.

    Do you know how this gets to a rank, where they would be listed out 1,2,3?

    Again - this is amazing stuff and I need to learn where the logic derives from, but really appreciate the assistance.

    O

  13. #13
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Contest Results based on 4 Criteria

    The version in post #11 does not account for blanks in F. It would rank that entry as 3rd, if it qualifies, which probably isn't what you want. You could reorder things and use this (array-entered) in H5:

    =IF($D5=MAX(($C$5:$C$9>=1)*($D$5:$D$9)),1,IF($E5=MAX(($C$5:$C$9>=1)*($E$5:$E$9)*(($D$5:$D$9)<>MAX(($C$5:$C$9>=1)*($D$5:$D$9)))),2,IF($C5<1,"NQ",IF($F5="","-",3+COUNTIFS($F$5:$F$9,">"&$F5,$C$5:$C$9,">=1",$D$5:$D$9,"<>"&MAX(($C$5:$C$9>=1)*($D$5:$D$9)),$E$5:$E$9,"<>"&MAX(($C$5:$C$9>=1)*($E$5:$E$9)*(($D$5:$D$9)<>MAX(($C$5:$C$9>=1)*($D$5:$D$9)))))))))

    ...and a blank in F would return a "-", which might be better.

    As to the ranking - it's not ranking the first two. It explicitly identifies the first place entry, according to your "first place" criteria, then it explicitly identifies the second place entry according to the "second place" criteria. Once it checks for NQs and blanks in F (in the version above), it then ranks the remaining values. Superficially, it doesn't look like a RANK formula, but:

    3+COUNTIFS($F$5:$F$9,">"&$F5,$C$5:$C$9,">=1",$D$5:$D$9,"<>"&MAX(($C$5:$C$9>=1)*($D$5:$D$9)),$E$5:$E$9,"<>"&MAX(($C$5:$C$9>=1)*($E$5:$E$9)*(($D$5:$D$9)<>MAX(($C$5:$C$9>=1)*($D$5:$D$9)))))

    ...is actually a roundabout method for conditional ranking. It is counting the number of entries that are greater than the current row's F value ($F$5:$F$9,">"&$F5), over 100% in C ($C$5:$C$9,">=1"), not the #1 entry ($D$5:$D$9,"<>"&MAX(($C$5:$C$9>=1)*($D$5:$D$9)),$E$5:$E$9), and not the #2 entry ($E$5:$E$9,"<>"&MAX(($C$5:$C$9>=1)*($E$5:$E$9)*(($D$5:$D$9)<>MAX(($C$5:$C$9>=1)*($D$5:$D$9)))))).
    It adds 3 so that the greatest of those values (the row with zero F numbers higher, as determined by the first term, so COUNTIFS returns 0) shows a 3. The row with one number higher in the COUNTIFS is 4, etc. It's not quiet as elegant as a standard RANK, but until Excel gives us RANKIFS, a little creativity is necessary.

    Hopefully this helps? Let me know if you have any additional questions.

  14. #14
    Registered User
    Join Date
    07-30-2014
    Location
    Columbus
    MS-Off Ver
    2013
    Posts
    64

    Re: Contest Results based on 4 Criteria

    Thank you CAntosh, really appreciate all the help...This is pretty much solved, I'm getting "1's" in the rank column, but figured a work-a-round with the blanks, so that's cool.

    Thanks again, and we'll work with what we have until needed. Thanks again

  15. #15
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Contest Results based on 4 Criteria

    I'm glad I could assist. Thanks to you and ChemistB for the rep!

+ 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. Getting results from a table based on certain criteria
    By gandyling in forum Excel General
    Replies: 7
    Last Post: 02-15-2016, 10:20 AM
  2. Display Top 20 results based on certain criteria
    By ash_farooq in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-11-2012, 02:54 AM
  3. Replies: 7
    Last Post: 05-29-2012, 05:44 PM
  4. Contest Results
    By screamnyak in forum Excel General
    Replies: 3
    Last Post: 10-22-2010, 03:42 PM
  5. Returning Lookup Results Based on 3 Criteria
    By craigieuk in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-28-2008, 06:01 AM
  6. Returning Results Based on Two Criteria
    By [email protected] in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-23-2005, 10:05 AM
  7. Replies: 1
    Last Post: 03-23-2005, 10:06 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