+ Reply to Thread
Results 1 to 10 of 10

3 Dynamic League Tables

  1. #1
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    3 Dynamic League Tables

    Hello

    I want to create 3 league tables for a production report...

    I have 3 shifts AM Shift, PM and a night shift, I want a league table of who is performing the best based on numbers of parts scrapped

    COL Z - to return the inspetor and COL AA to show how many parts have been scrapped - i Need this update as the data changes

    Please see attached to help undertanding (expected results in orange)

    Ideally i need tis in formalua form

    Paul
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: 3 Dynamic League Tables

    How are you filtering the data for these sums? If it's just on the shift, then I don't think your expected results are correct, so what criteria in other columns need to be met?

    Here's a starting point:

    =LET(i,K2:K2916,s,P2:P2916,ss,SUMIF(i,i,s),h,HSTACK(i,ss),TAKE(SORT(UNIQUE(FILTER(h,Q2:Q2916="AM Shift")),2,-1),10))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: 3 Dynamic League Tables

    This seems to get closer, but still doesn't match your results:

    Please Login or Register  to view this content.
    Which other column do I need to filter on (bit in red)?

  4. #4
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: 3 Dynamic League Tables

    yes, its just on the shift


    LET(i,K2:K2916,s,P2:P2916,ss,SUMIF(i,i,s),h,HSTACK(i,ss),TAKE(SORT(UNIQUE(FILTER(h,Q2:Q2916="AM Shift")),2,-1),10))
    this seems to work (do i just change "AM Shift" PM to look at the different shift ?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: 3 Dynamic League Tables

    Yes.

    This includes the ordinals:

    =LET(i,K2:K2916,s,P2:P2916,ss,SUMIF(i,i,s),h,HSTACK(i,ss),HSTACK({"1st";"2nd";"3rd";"4th";"5th";"6th";"7th";"8th";"9th";"10th"},TAKE(SORT(UNIQUE(FILTER(h,Q2:Q2916="AM Shift")),2,-1),10)))

    Why did you provide incorrect expected results? That was very misleading!

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  6. #6
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: 3 Dynamic League Tables

    appoliges if my expected data was wrong...

    i'm confused at the best of times.... I have used your formula, but i dont thing its working correctly,

    Please see attached - I think somthing is going wrong when the usser is booking on multilple shifts
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: 3 Dynamic League Tables

    Oh - silly error on my part!

    Try this (change in red):

    =LET(i,K2:K2916,s,P2:P2916,ss,SUMIFS(s,i,i,Q2:Q2916,"AM Shift"),h,HSTACK(i,ss),HSTACK({"1st";"2nd";"3rd";"4th";"5th";"6th";"7th";"8th";"9th";"10th"},TAKE(SORT(UNIQUE(FILTER(h,Q2:Q2916="AM Shift")),2,-1),10)))

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: 3 Dynamic League Tables

    So that you only have to change the shift name in one place:

    =LET(sh,"AM Shift",i,K2:K2916,s,P2:P2916,ss,SUMIFS(s,i,i,Q2:Q2916,sh),h,HSTACK(i,ss),HSTACK({"1st";"2nd";"3rd";"4th";"5th";"6th";"7th";"8th";"9th";"10th"},TAKE(SORT(UNIQUE(FILTER(h,Q2:Q2916=sh)),2,-1),10)))
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    471

    Re: 3 Dynamic League Tables

    perefect

    thanks for your time Ali

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: 3 Dynamic League Tables

    No problem.

    If you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

+ 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. [SOLVED] Help with football league tables, need to add 2 tables together!
    By ferdowsi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-10-2013, 01:13 PM
  2. League tables
    By niallheavey in forum Excel General
    Replies: 7
    Last Post: 08-26-2011, 04:34 PM
  3. League Tables
    By Jack in forum Excel General
    Replies: 1
    Last Post: 12-14-2005, 10:25 AM
  4. [SOLVED] League Tables
    By Howard in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-07-2005, 12:05 AM
  5. League Tables
    By Howard in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 PM
  6. League Tables
    By Howard in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 PM
  7. League Tables
    By Howard in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 09:05 PM
  8. [SOLVED] League Tables
    By Howard in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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