+ Reply to Thread
Results 1 to 106 of 106

Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

  1. #1
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Hi Leute,

    ich bastel im Moment an einem Masterplan für unser Unternehmen, welcher die Erstellung, Verwaltung und Überwachung von Arbeitsstunden erleichtern soll. Zudem gibt es (oder besser sollte es geben) einige statistische Funktionen, welche es dem Betriebsrat erlauben, genau zu überwachen, dass die Kollegen ihr Stundenkontingent einhalten und nicht ständig Überstunden schieben müssen. In der Anlage hab ich mal die Excel Datei dran gehängt.

    Mir geht es hier vor allem um den Reiter "Statistik", der für den Betriebsrat wichtig ist. Die Namen auf der linken Seite werden dynamisch vom Reiter Daten erzeugt. Nun möchte ich, dass Excel schaut, wieviele Frühschichten "F" der Mitarbeiter der jeweiligen Schicht im entsprechenden Monat gearbeitet hat. Das möchte ich mir auch für die anderen Schichten anzeigen lassen, also Mittagsschicht (M), Nachtschicht (S), die Feiertage (FT), und die Wochenenden (Sa, So). Außerdem will ich mir anzeigen lassen, wie oft der Mitarbeiter "Frei" hatte, wie oft er "K" krank geschrieben war und wieviele Tage "U" Urlaub er hatte. Links oben in der Ecke hab ich jeweils das aktuelle Jahr, welches sich auf den Reiter "Jahresplan" bezieht, um es dynamisch zu halten.

    Wäre super, wenn mir da jemand weiterhelfen könnte.

    Grüße
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Ich würde das anders lösen.

    Mit einer Pivot-Tabelle ist die Analyse der Daten viel einfacher.

    Siehe zum Beispiel im Reiter Oeldere.

    Ich habe diese Tabelle mit Power Query (Oeldere PQ) bearbeitet und dann eine Pivot-Tabelle erstellt.

    So können Sie die Daten Z.B. auch wöchentlich Analysieren.

    Es ist wahrscheinlich nicht die Antwort, auf die Sie gehofft haben, aber schauen Sie sich diese Option ernsthaft an. Wenn Sie eine Pivot-Tabelle beherrschen, hat die echte Datenanalyse begonnen.

    Wenn Sie Fragen haben, lassen Sie es einfach wissen.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Hey there,

    I guess we can switch to English then ;-).

    I m always open to new ideas and suggestions. The idea with the pivot table sounds great even though I am not that experienced with pivot tables myself.

    So how exactly does that work. I m looking at three new tabs: Pivot Tabelle, Oeldere PQ and oeldere

    I m guessing the first one (Pivot Tabelle) collects the data of each employees per month from the "Oeldere PQ" tab and then displays it, with the help of pivot tables, in a nice graphical fashion, right? Is the data generated dynamically and is there a way I can switch to another month, lets say February for instance?

    The tab "oeldere" pulls the information of the entire month for all employees and displays them in a "monhtly fashion", right?

    What the work council also needs are information about the holidays, the saturdays and sundays an employee worked and how many days off he or she had?

    The way I initially designed the masterplan to work is as follows:

    The tab "Jahresplan" is where supervisors and temporary supervisors are able to enter shift information (F, M, S, FT, Sa, Su etc). Further down below I tried, with the help of conditional formatting, to display any "holes" or "missing hours" in the plan.

    The way our shift system works is as follows:

    Mo - Fr: Morning Shift 8 people/Late Shift 8 people/Night Shift 7 people....05:30 - 13:30 13:30 - 21:30 and 21:30 - 05:30
    Sa - Su: 12 hours shifts....Morning 12 and Night 12 so 05-30 - 17:30 and 17:30 - 05:30

    The tab "Leistungsnachweis" lets the supervisors pull information of their shift so that the company can see how many hours the shift group in question has worked. That is the one that gets either printed out or send off in an email to HR.

    The tab "Einzelnachweis" is supposed to be the tool for the work council where they can choose an employee and have Excel list them their shift per month so that work council staff can check that work regulations are adhered to (breaks and so on). The box rightr next to it was
    supposed to be for statistical purposes, just like the tab "Statistik".

    It is also essential that the people that are working with the plan can cycle through each month, so a dynamic generation of content is key.

    It would be great if we could achieve this. Your idea with the pivot table seems to be a step in the right direction. So if you could help me further, I d highly appreciate it.

    Greetings
    Heiko

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Dear Heiko,

    I made the sheet Oeldere since the data you use is not Pivot Table proof.

    To use Pivot Table we need the same informatie in rows instead of in columns.



    So the sheet with the name Oeldere is a (copy of) your sheet Jahresplan with the month januar.

    That is why I made an sheet Oeldere PQ, to get the data in the right format.

    The result is the sheet Pivot Tabelle.



    Of course you can add all year in this format.

    After that you can analyse the data the way you like (day / workday / week / month / quarter / year / other period.

    I made this to give you just an idea wath is possible with Pivot Table.

    You ask if it is dynamic => yes it is.

    I used just 1 month for testing proposal.


    If you like the idea of Pivot Table I will help you.


    Just another Pivot Table with the same data (in this case I did not refresh the data).
    Last edited by oeldere; 07-05-2022 at 02:48 PM.

  5. #5
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I really dig the idea with the pivot tables. I spent last night watching a few youtube tutorials and went ahead and played with the plan a bit

    I like the concept of an interactive dashboard as this is exactly what the supervisors and the work council staff need to get a quick overview.

    We need to be able to easily switch or cycle throught every shift (A, B, C, D and POOL).

    What I definitely need help with is how to generate the pivot tables that you have dynamically from the JAHRESPLAN.

    Take a look at the plan I attached to get a feel for what we could be aiming for.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I changed the format of the sheet Jahresplan.

    There are no empty rows in the sheet Oeldere.

    We need the data from row 3. This will be the headers of a table.

    Since it was just Januari f3 has the value 01.

    If you want to select on a year / month / day you have to add this data in a cell.

    So cell F3 becomes 01-01-2022, G3 becomes 02-01-2022 etc.

    So you can also add the data of februar etc in the sheet Oeldere (the sheet with the data).

    Sheet follows.

  7. #7
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Looking forward to seeing what you are coming up with ;-).

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    "What I definitely need help with is how to generate the pivot tables that you have dynamically from the JAHRESPLAN."

    See the attached file.

    The original data is in Sheet Oeldere.

    Change / Add a value in Sheet Oeldere.

    After that go to sheet Oeldere PQ new.

    Data => refresh => refresh all => the new data in the sheet Oeldere are also in the sheet PQ new.

    After that go to sheet Oeldere PT new.

    Data => refresh => refresh all => the new data in the sheet Oeldere are also in the sheet PT new.

  9. #9
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Is there a way for "Oeldere" to automatically get the data people enter in "Jahresplan" as this is supposed to be the main plan people are working with or do I need to focus on "Oeldere" now? If so, is there a way for me to make it look like "Jahresplan"?

    I also need the pivot table to be able to display every shift (F, M and S) as well as the weekends (Sa and So) plus the sick days (K), the holidays (U) and the days off (blank field).

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I also need the pivot table to be able to display every shift (F, M and S)

    1) Already available (see sheet Oeldere PT new).


    as well as the weekends (Sa and So)

    2) Added in the PQ, and available in the PT new (see sheet Oeldere PT new).


    plus the sick days (K), the holidays (U) and the days off (blank field)


    3) Add the information in the "normal" data with the K, U (Krank and Urlaub).
    Also add the normal hours in this data.
    (see sheet Oeldere PT new).


    "Is there a way for "Oeldere" to automatically get the data people enter in "Jahresplan" as this is supposed to be the main plan people are working with or do I need to focus on "Oeldere" now?"

    4) I made the sheet Oeldere since the data you use is not Pivot Table proof. In the end the data needs to be Pivot Table Proof.
    Off course you can add color etc for viewing proposal.
    But for now just focus on a pivot table solutions.
    After that we can instruct what can be done on the sheet Jahresplan.




    See the attached file for the add with workday.
    Last edited by oeldere; 07-08-2022 at 02:49 AM.

  11. #11
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I m attaching a new version of the plan where I went ahead and did some graphical adjustments to make "Oeldere" look more appealing ;-).

    It would be great if the plan was laid out for the entire year. I added a "year" component in the upper left corner so that the plan can easily be switched to another year.

    I also included information regarding the shifts at the bottom. I played with conditional formatting a bit, however, I did run into difficulties with a few of them.
    Our shift model is as follows:
    Morning shift - Monday til Friday: 8 people
    Morning shift - Weekend: 12 people

    Late shift - Monday til Friday: 8 people
    No late shift on the weekends

    Night shift - Monday til Friday: 7 people
    Night shift - Weekend: 12 people

    I would like to display any missing people as a big red number.

    There is a tab "Leistungsnachweis" which pulls, with the help of dropdowns, the necessary information from the "Jahresplan" (which will be replaced by Oeldere) and displays it in a way that shift supervisors can easily see the shifts their employees are working and are also able to print
    it out.

    "Einzelnachweis" pretty much does the same, however, it only pulls information from one employee. I hope there is way of implementing it with Oeldere or maybe there is another way. I m always open to improvements and suggestions.

    Greeings
    Heiko
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Please explain what the use is off the row 47 till 75.


    1) "It would be great if the plan was laid out for the entire year. I added a "year" component in the upper left corner so that the plan can easily be switched to another year."

    I don't think that will be a good idea.

    Probably we use a sheet for each year and add all data together for analysing porposal.



    2 "I would like to display any missing people as a big red number."
    That people are in the table, so that is not a problem.

    Or did it use a standard employeelist and fill the sheet Oeldere?

  13. #13
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    48-51: shows you the order in which morning shift, late night, night shift and off days are laid out for every shift. I used a formula I found that dynamically calculates the shift model.

    53-60: the first part shows you how many employees are supposed to be scheduled for the days in question.

    62-69: shows the actual amount of employees that are available. that is where I want the missing shifts (holes in the plan) are displayed in red.

    There is a tab "Daten" which lists all of the employees. Is there a way that this data gets put into the oeldere plan automatically depending on the changes you make in the tab?




    Ok, let's finish the plan for the entire year and then we can add others for 2023, 2024 and so forth.

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    For the first part of the question, you can implement the original formula in Sheet Oeldere.

    But it is only a planning tool, or not?
    Is there a need to get those data in the sheet Oeldere PQ new?


    There is a tab "Daten" which lists all of the employees. Is there a way that this data gets put into the oeldere plan automatically depending on the changes you make in the tab?

    all employees are in the sheet Oeldere (which is OK for me), so I don't understand the question.


    You can now use the sheet Oeldere PT new (Pivot tabelle) for analysing the data, you earlier did.


    If you expect more help from me, you have to be more specific.

  15. #15
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    But it is only a planning tool, or not?
    Is there a need to get those data in the sheet Oeldere PQ new?

    53-69 is simply there to show team leader/supervisors on duty where they need to call up people to fix any shift holes. This information only needs to be "oeldere" sheet for overview and management purposes.

    all employees are in the sheet Oeldere (which is OK for me), so I don't understand the question.
    lets just say there are new hires or people quit or leave. I used to simply go into the "Daten" tab, made the necessary changes which were in turn reflected in the tab "Jahresplan". So the question was if that was possible for "oeldere", too so that it automatically gets any changes made to the table with the employees on the tab "Daten".

    So, in order to add the remaining few months of the year, can I just go ahead and use the formulas I used in the "Jahresplan" tab. We already said that it be best to make copies for each year so the "year" component in the left upper corner is no longer necessary. The only thing to look out for when it comes to setting up the months are months with 31 days or especially February. :-)

    Again, I m really thankul for your help and really appreciate it.

  16. #16
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    "all employees are in the sheet Oeldere (which is OK for me"

    You really need all data (also for the employees who left the organisation) in the sheet Oeldere.

    If you delete those data or not add this data in the analyse => the data becomes invalid.
    The results will not be usefull.


    e.g. you delete a employee in April and May.
    If you make a pivot table the employee is not in the data, and therefor not in the pivot table.
    You will notice you have a shift with e.g. 6 people (which was original 7 people).



    A worksheet with the employees can be usefull for analysing that data (e.g. leave / grow / age)

  17. #17
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    "You really need all data (also for the employees who left the organisation) in the sheet Oeldere."

    You can hide the employees (in the sheet Oeldere) who left the organisation.

    That will not have a negative influence on the pivot table (I just tested it).


    See the new sheet with the expand of the data to a whole year.



    Maybe we have to look at an easy way to select the current week (for input the shifts).
    This needs to be solved / no solution for that on this moment.

  18. #18
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Hey there,

    i am attaching the new version of the plan....a version I have been working or playing with for a bit ;-)....if you wanna make any changes, please take that one or I would have to do all the graphical formatting again ;-)))).

    Since you drew my attention to pivot tables, I went ahead and made a new tab "DASHBOARD NEW" to give me an overview of the individual shifts plus the employees of the Pool shift.

    Is there a way for me to tell Excel to count the holidays (marked in oeldere down below with purple) an employee has worked and have Excel display it in the pivot table?

    I also added a new tab "PLAN_MITARBEITER" which is supposed to be automatically filled out by Excel depending on what employee number you choose in the upper right corner. I don't quite know how to do it tho.

    One tab that is very important is "LEISTUNGSNACHWEIS" which is supposed to take the information of the shift you choose in the drop down and displays the shifts of the individual group in the plan. If you could help me with that one, that be great.

    I think I can delete "Einzelnachweis" since I can get the individual information of people from the Pool shift with the help of pivot tables.

    If I wanna go ahead and already prepare the plan for next year, what exactly is it that I have to do? Make a copy of the plan and simply change the first day in January to the next year?
    Attached Files Attached Files
    Last edited by fullenchilada; 07-10-2022 at 12:19 PM.

  19. #19
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Is there a way for me to tell Excel to count the holidays (marked in oeldere down below with purple) an employee has worked and have Excel display it in the pivot table?


    See my comment in #10
    3) Add the information in the "normal" data with the K, U (Krank and Urlaub).


    If I wanna go ahead and already prepare the plan for next year, what exactly is it that I have to do? Make a copy of the plan and simply change the first day in January to the next year?

    Make a new sheet with all data.

    Or

    Add the data after NF for the year 2023.

  20. #20
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    #17 "Maybe we have to look at an easy way to select the current week (for input the shifts)."

    That can be solved showing the data from left ot right (now there are showing right to left)

    Add each week the current week from G3.
    The earlier data are from left to right.

    Advantage
    You have the actual data in front of you.


    Disadvantage
    You have to add each week / day new columns to the table.

  21. #21
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    See my comment in #10
    3) Add the information in the "normal" data with the K, U (Krank and Urlaub).


    "K" and "U" are clearly marked in the plan so I can filter them using pivot tables. "Holidays" are not marked with anything I just made an auxiliary line so that people can see which day is an actual holiday. And if people worked on these special days, I would like Excel to tell me how many holidays there were that the employee had worked.



    #17 "Maybe we have to look at an easy way to select the current week (for input the shifts)."

    That can be solved showing the data from left ot right (now there are showing right to left)

    Add each week the current week from G3.
    The earlier data are from left to right.

    Advantage
    You have the actual data in front of you.


    Disadvantage
    You have to add each week / day new columns to the table.


    Are you referring to the issue with the "PLAN_MITARBEITER"? I d would like to add a drop down to either PERSONALNR or NAME so that Excel then pulls the necessary information from the JAHRESPLAN.

  22. #22
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    post quick reply (forum issues)

  23. #23
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    "Are you referring to the issue with the "PLAN_MITARBEITER"? I d would like to add a drop down to either PERSONALNR or NAME so that Excel then pulls the necessary information from the JAHRESPLAN."

    No I refer to the sheet Oeldere.


    "3) Add the information in the "normal" data with the K, U (Krank and Urlaub)."

    Add the data with H8 (H = Holiday) and hours in the data sheet. Then they also be part of the pivot table.

  24. #24
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    #17 "Maybe we have to look at an easy way to select the current week (for input the shifts)."

    That can be solved showing the data from left ot right (now there are showing right to left)

    Add each week the current week from G3.


    I m sorry but I dont know what you mean.

    Add the data with H8 (H = Holiday) and hours in the data sheet. Then they also be part of the pivot table.


    If I used another abrreviation like H8 I would get rid of a shift and it will not get listed or counted properly further down below. I basically wanna tell Excel "Hey Excel, take a look at all the days of a month an employee has worked and check if one of those days was a holiday (which are listed in the tab FEIERTAGE ) and then count them days.

  25. #25
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    "If I used another abrreviation like H8 I would get rid of a shift and it will not get listed or counted properly further down below. I basically wanna tell Excel "Hey Excel, take a look at all the days of a month an employee has worked and check if one of those days was a holiday (which are listed in the tab FEIERTAGE ) and then count them days."


    M2=IFERROR(VLOOKUP(F2,tbFeiertage[[Feiertag]:[Gesetzlich]],2,0),"")


    Now you can count the Holiday in the Pivot Table.


    #17 etc
    See the sheet New Format Of Data for an example of what I meant.


    See the attached file.

  26. #26
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Hey,

    first of all thanx for all your hard work that put in the plan.

    Could you use the one I m attaching as that is the one with a lot of changes and graphical adjustments.

    Why is the table on tab "NEW FORMAT of data" going from right to left?
    Attached Files Attached Files

  27. #27
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Ahh ok I think I got it now. All i gotta do is add a new column to the table in OELDERE PQ, call it Feiertage and use the formula you provided.

    M2=IFERROR(VLOOKUP(F2,tbFeiertage[[Feiertag]:[Gesetzlich]],2,0),"")
    Last edited by fullenchilada; 07-16-2022 at 09:25 AM.

  28. #28
    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: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I think he meant put

    =IFERROR(VLOOKUP(F2,tbFeiertage[[Feiertag]:[Gesetzlich]],2,0),"")

    in M2...
    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

  29. #29
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Thx Glenn, just realized it...with the help of 2 cups of coffee lol. I m trying to figure out now how to add that column to the dynamic table so that the data gets processed as well once I hit refresh

  30. #30
    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: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    OK. I'll look at the file as well in a moment or two. Coffee helps!!

  31. #31
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Ok I think I got it even though I seem to have problems with Excel getting the table "Feiertage" on the DASHBOARD_NEW and PIVOT_POOL to process the data correctly.
    Attached Files Attached Files

  32. #32
    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: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Ahhh... Pivot Tables... I haven't used them in years. Oeldere will sort you out when he gets back, assuming I mess up.

    But... a guess.

    Add the formula in M2. Go to the new Pivot Table sheet. Data/Refresh and the new column will be in the Pivot Table field list to use whatever way you want.

  33. #33
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Ok I figured it out. All I had to do was to switch the filter to the "X" and now it is working perfectly fine.

    The only things left to figure out are the tabs "PLAN_MITARBEITER" as I would like Excel to display dynamically the monthly plan of the employee that gets selected via the drop down menu in the upper right.
    "LEISTUNGSNACHWEIS" also needs some TLC as it basically should do the same as PLAN_MITARBEITER but for the entire shift group and not just one person.

    I have also been playing with the conditional formatting on OELDERE at the very bottom so that Excel can show me if people are missing or if there are any shift holes in the plan that need fixing. I keep on running into problems tho as differences in manpower in the plan are not displayed correctly.

  34. #34
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    For your 2nd question in #33

    "#17" "You really need all data (also for the employees who left the organisation) in the sheet Oeldere."

    You can hide the employees (in the sheet Oeldere) who left the organisation.

    That will not have a negative influence on the pivot table (I just tested it).
    "

  35. #35
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    The issue with the PLAN_MITARBEITER has been resolved using a vlookup formula.

    I m still struggling with the conditional formatting for the oeldere tab and the Leistungsnachweis.

    Another question that popped up yesterday....Let's just say I wanna rename the tab "oeldere" coz if I pass it on to my co-workers so that they can work on the plan they have absolutely no plan what oeldere actually means ;-). Is there a comfortable way to rename it so that all dependent formulas change accordingly?

  36. #36
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Add the last version of your file, so we can test it (question 1)

    The sheetname Oeldere is just for the test.
    Of course it can be renamed in your version.

  37. #37
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I played around with vlookup on the LEISTUNGSNACHWEIS NEW but strangely Excel simply gives me back the formula the way I typed it in, no error message or anything which I find pretty weird :-).

    Doesn't it break a few formulas if I simply go ahead and rename to tab to something else?
    Attached Files Attached Files

  38. #38
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    you formatted the cells "Standaard;Standaard;;@"

    I changed the format to "standaard"

    After that I changed the formula

    E9=INDEX(Tabel3_3[#All],MATCH($E$9,Tabel3_3[[#All],[Date]],0),7)

    See the attached file.

  39. #39
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Hey oeldere

    I took a look at the formula you included but it seems not to be working correctly.

    When I choose a shift group in the drop down menu on tab LEISTUNGSNACHWEIS NEW (L6) and the month (AF6), I want Excel to change the line (E12 - AI12) to the
    corresponding line of A48-A51 on oeldere and display whatever shift succession the shift group in question has and also pull the monthly plan for the employees
    of that shift and display it underneath it.

    The problem is that the personal number as well as the employee name are generated using array formulas (something another Excel user suggested). However the
    version we are using is Excel 2019 and that one does not support it unfortunately.

  40. #40
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Show the expected results manualy in the excel file.

  41. #41
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I m attaching the new version of the plan. We somehow managed to get the LEISTUNGSNACHWEIS_NEW going.

    HOWEVER :-).... when you take a look at the column Personal Nr. you can see the following formula:

    =FILTER(tbSchichten[Personalnr];tbSchichten[Schicht]=LINKS($B$12;SUCHEN("-";$B$12)-1))

    Right next to it we have the following formula:

    =XVERWEIS(A13#;tbSchichten[Personalnr];tbSchichten[Name];"--";0;1)

    From what I learned these two cannot be used in Excel 2019, that is why, at the computer at work, I always get error messages.


    When you click on the dropdowns next to SCHICHTGRUPPE and MONAT you get to choose the shift group and the month which will then in turn fill out the column Personal Nr. with the corresponding shift group.

    I noticed tho that something is wrong with the month dropdown. I had it set up watching a youtube tutorial ;-) and hid it in AQ. When I click on the drop-down menu now I get Januar, Februar and March and then all the months again which is kinda weird.

    Hopefully the file will show you how I would like Excel to display the necessary information.
    Attached Files Attached Files

  42. #42
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    "I noticed tho that something is wrong with the month dropdown. I had it set up watching a youtube tutorial ;-) and hide it in AQ. When I click on the drop-down menu now I get Januar, Februar and March and then all the months again which is kinda weird."


    1) Please do not hide data. At least during the test period.
    More in general I should not hide the data (since it makes it a lot diffecult to understand the file).

    2) More in general do not work with merged cells (e.g. AF6). You get in trouble with it sooner or later.

    3) I work normaly with colors, so I can see, based on the color what action is expected (blue is input / yellow is formule)

    4) Leistungsnwchweis new
    AW12 = 01-01-2022.

    After that the drop down will work.

    I deleted the input in AQ8 : AQ11.


    See the attached file.

  43. #43
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Hey oeldere,

    the file you attached is the same as the one I uploaded. I cannot see any changes. Even the information in AQ is still there.

  44. #44
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    here the changed file.

  45. #45
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I did some tutorials on INDEX and MATCH and was able to use it for the LEISTUNGSNACHWEIS NEW to pull the shift information of each employee listed from the annual plan (oeldere).

    I m still trying to fix the columns PERSONAL NR. and X-SCHICHT as they are still using formulas that are not compatible with the Excel version I got running on my work station.

    I also want Excel to count the sick days (K) and the vacation days/extra vacation days (U and SU) for the month in question.

    Another issue that is still bugging me is the conditional formatting part on OELDERE where cells (rows 60 - 63) are being compared with the rows 55-58. Any discrepancies are to be color coded. Whenever the cell value is the same, I want the white background/black font (no shift holes); when the cell values are less then the ones above (employees missing, shift holes), I want them to be color coded red background/white font. And whenever there is a surplus (more employees than actually needed) I want the cell to be green background with white font.

    I also got rid of the tabs we no longer need.
    Attached Files Attached Files
    Last edited by fullenchilada; 07-20-2022 at 07:41 AM.

  46. #46
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    1) "I m still trying to fix the columns PERSONAL NR. and X-SCHICHT as they are still using formulas that are not compatible with the Excel version I got running on my work station."

    Why not update to the new version?

    I looks a good alternative, instead of using old formula.


    2) "I also want Excel to count the sick days (K) and the vacation days/extra vacation days (U and SU) for the month in question."

    Add an value after K and U. See Oeldere!V31


    After that refresh Oeldere PQ

    After that refresh Oeldere PT new



    See the attached file.

  47. #47
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Why not update to the new version?

    I looks a good alternative, instead of using old formula.


    Well, the problem is that the new Excel version will be rolled out within the next half year, til then we are stuck with the old version unfortunately.



    Add an value after K and U. See Oeldere!V31


    After that refresh Oeldere PQ

    After that refresh Oeldere PT new

    I want the Ks, Us and SUs to be counted on the tab LEISTUNGSNACHWEIS NEW. We already got them covered with the pivot tables for the statistics on DASHBOARD NEW. I used =zählenwenn (countif) to count them together, I guess thats working.

  48. #48
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Oeldere, can you take a look at LEISTUNGSNACHWEIS_NEW. I went ahead and did some tutorials trying to fix the "issue" with the drop-down and the multiple results. I found a method using =Sverweis (=vlookup) and some auxiliary columns. Maybe there is a better way, I don't know. I mean it is working so far lol.
    Attached Files Attached Files

  49. #49
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    The conditional formatting issue still gives me a headache. I went ahead and used the formula that is supposed to be used in the conditional formatting window in another cell to see which value Excel gives back.

    So I m comparing cell F60 (0) with F55 (0) using =F60=F55. However, the result is false and I don't f*** understand why lol.

  50. #50
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    A13=IFERROR(VLOOKUP(ROW()-12&":"&$B$12,$AV$13:$AZ$52,COLUMN()+3,0),"")

    German => A13=WENNFEHLER(SVERWEIS(ZEILE()-12&":"&$B$12,$AV$13:$AZ$52,SPALTE()+3,0),"")

    And drag to column B.

    After that drag A13:b13 til A24:B24

    See the attached file.

    Note:

    I would add those data (AV13:AZ52) in a separate sheet.

    That would it make much easier to change the file.
    Last edited by oeldere; 07-22-2022 at 10:32 AM. Reason: note added

  51. #51
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I already have that table on the tab Daten, I just thought, because of the auxiliary columns I used before, that it might be better to have it on one. The table on "Daten" is dynamic, as well.

    I would then simply hide them and restrict the "printing area" to the actual plan display on the left.

    Could you explain to me how your formula exactly works or what it does. I always love to learn new Excel stuff and formulas.

  52. #52
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    A13 => A13=ROW()-12 => 13 -/- 12 = 1

    B12 = D

    &":"&$B$12

    So the result is 1:D

    We use 1:D in the Vlookup formula.



    A13 => COLUMN()+3 = column(A)=1 => 1 + 3 = 4

    So in the VLookup formula use the 4th column.


    We use that so we can drag the formula to the right.
    Column B =2 => 2+3 =5 => is the 5th column.

    Hope I explain well enough.

  53. #53
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    So far so good...well I guess the plan is almost finished :-) thanx to you oeldere :-).

    There is one little thing I noticed. I do have statistical data on DASHBOARD NEW which gives me information regarding shift hours, sick days, holidays and all that kinda stuff.

    The employees of the POOL group have flexible working times which means they do cover regular shifts (F8, S8, M8, F12 and S12) but also regular Pool times (P1, P2 .....P10). If you check out DASHBOARD NEW and take a look at the statistics on the very right "Pool Gesamt" you can see that regular shifts with 8 and 12 hours are counted together.

    Pool shifts are not counted together. So while shift hours get a SUM treatment, the regualr pool times get a COUNT treatment. Is there any way I can tell Excel to regard all the P1, P2 ... P10 as 8 hour shifts without changing their acronym in the plan?

    I m attaching the latest version of the plan. It is no longer a .xlsm coz I got rid of all unnecessary macros that we are not using anyway.
    Attached Files Attached Files
    Last edited by fullenchilada; 07-24-2022 at 10:41 AM.

  54. #54
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    VLookup table added in sheet "Daten"

    column I added Uhr (def)

    I2=IF($G2="P",VLOOKUP($G2,Daten!$L$19:$M$30,2,0),$H2)

    You have to make the analyse of column Uhr (def).

    See the attached file.

  55. #55
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I did reload all the necessary tabs, however, there is no change or maybe, big maybe, there is somthing I forgot. But the column you set up seems to be the same as UHR.

    Maybe you can take a look at the screenshots and tell me where I went wrong.
    Attached Images Attached Images

  56. #56
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    For some reason my formula is not implemented well.

    Come back with the changed one.



    See the Pivot Table on sheet Dashboard new.

    I get the correct data in the graph.

    So I think you need to set up your graph again.

    Please try it an comment back.


    See the attached file.
    Last edited by oeldere; 07-24-2022 at 01:47 PM.

  57. #57
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Working like a charm...didn't expect anything else Oeldere :-)

    Something that dawned on me and an issue somebody made me aware of is the possibility of somebody not working the full 8 or 12 hours and instead going home earlier. Do you have any suggestion of how we could integrate this in the plan.

    For example if somebody worked a regular F8 so 05:30 - 13:30 but goes home at 11:30. What could we do to make sure that the hours are counted correctly and how could we mark this in the plan (maybe another acronym or something)?

    There is also the fact that shift employees (A , B, C and D) also get 20 minutes briefing time per shift day, employees of the POOL shift don't. Jahresplan PQ is a dynamic table, right? Can I just make a new column "?bergabe" or "Briefing" and use vlookup (sverweis)?

    I would search for the personal number on "DATEN" in the table, check if there is a ja oder nein in the column ?bergabe and also check if the employee worked that day. If both conditions are met, then the employee is getting 20 minutes of briefing time.

  58. #58
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    1) Change F8 into F6 (8 hours / 6 hours)


    2) O2 (jahresplan PQ) =IF(OR($C2="A",$C2="B",$C2="C",$C2="D"),0.33,"")

    P2 =$I2-$O2



    See the attached file.

  59. #59
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Awesome. Implemented it and it works like a charm.

    I need a special acronym for the members of the work council. So whenever they do have their meetings or go on trips I would like to add BR (for Betriebsrat) to the plan and have Excel count it as a regular 8 hour shift. It should be independent from what the plan counts on
    JAHRESPLAN but I would like to list it with pivot tables so that the work council people can see how many hours they accumulated.

    We are already in the process of testing the plan with the staff and so far it is been a real time saver and makes work much more efficient. So again thank you so very much Oeldere

  60. #60
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    "I would like to add BR (for Betriebsrat) to the plan"

    Add B8 in Jahresplan and refresh the data.

    I tested it with B16 for Maier, Bernd on 03-01-2022.

    See the attached file.

  61. #61
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Hey Oeldere,

    sorry i couldn't answer but I have been sick for the last couple of days.

    One of my co workers approached me today and asked if we could somehow implement 3,5 hour or 4,5 hour shifts into the plan. I was wondering if I could simply create a shift such as X3,5 or T4,5 and simply put it in the plan. Is Excel gonna look for the numbers only or also for the letter in front of it.

    There is another thing that I noticed. Whenever people work the following shifts (F8, S8, M8, F12 and S12) they need to get 20 minutes briefing time added (0,33).

    I think we already did that for shift members (co workers that are either A, B, C or D shift) with that formula:

    O2 (jahresplan PQ) =IF(OR($C2="A",$C2="B",$C2="C",$C2="D"),0.33,"")

    However, sometimes the POOL people help out in other shift groups and whenever they do the company pays them 20 minutes as well.

    As always I m very grateful for your help. The plan would not be what it is without your help.

  62. #62
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    The first question (3,50) can be solved.


    The second question

    Conclusion

    1) A B C and D don't get payed.

    2) Poolworkers will get payed

    If so, we need to implement a Vlookup formule (on the names of the Poolworkers)
    Other option would be on WorkersID but there is no logic sence in that data so that can't be used.

    We can use the table on sheet Daten (for the poolworkers?)

  63. #63
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Or could we add another vlook table to the "DATEN" tab...or add to the existing one...and then add another column on JAHRESPLAN PQ ...when G2 is S, or M, or F and H2 is 8 or 12, then add 0,33 to that column? Could that work?

    Basically whenever people work regular shifts such as F8, F12, S8, S12 or M8 they always get the 0,33 briefing time extra on top. However that only applies to those shifts and not the P1, P2 and so forth.
    Last edited by fullenchilada; 08-22-2022 at 10:14 PM.

  64. #64
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Will study that in the evening.

  65. #65
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    1) The schicht (column C in the Jahresplan) is prefilled, so for the Pool workers we need to define, under which conditions they get also briefing time.

    So for this one, I don't have a solution yet.


    2) JahresplanPQ (cell P2=$I2-$O2).

    So the briefing time is abstracted of the working time and not added to the working time.

    Should it be added or abstracted of the working time.


    3) Sheet Daten cells L19:N30
    I added in column N the information of the abbreviation


    4) The last code in the PowerQuery is:

    Please Login or Register  to view this content.
    I changed the red text so you can work also with 3,50 etc.


    See the attached file (nr 14).

  66. #66
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Briefing time (0,33) is always added to the working time whenever a worker works one of the following shifts: F8, M8 and S8 (regular work week Monday til Friday) as well as F12 and S12 (weekend shifts)

    So maybe we can restrict the if function in the "?bergabe" column to the following conditions: it needs to be either one of the shift groups (A, B, C or D) or it needs to be one of the F8,M8, S8, F12 or S12 shifts.

    Workers of the "Pool" category do not get briefing time added to their regular working hours if they work all the others shifts (P1, P2 and so on).

    I didnt even know we were using PowerQuery in the plan. Is that how the JAHRESPLAN PQ gets all the information from the Jahresplan? That is like a whole new world for me lol and I absolutely have no clue what the red text even means.....And I also have to brush up on my Dutch it seems :-).

    There is something else a co-worker recently brought up when we talked about our awesome plan. Is there a way we could add a new tab, maybe call it SCHICHTVERGABE or whatever, where we could list, on a monthly basis and maybe use the wireframe we have on LEISTUNGSNACHWEIS_NEW, missing shifts. We already have the counter on JAHRESPLAN which displays any discrepancies in work force in either red or green. So lets just on a Monday there is one morning shift F8 missing, Excel will display it. Do not know if that is possible.

    The reason why this issue was brought up was that the access to the master plan is restricted to authorized personnel only. And whenever free shifts need to be distributed amongst co-workers people tend to gather around the computer and look at the monitor. The master plan not only lists the individual shifts, but also sick days and holidays which nobody else is supposed to see.

  67. #67
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Please number the questions / suggestions. It makes it a lot easier to refer to.

    1) Jahresplan PQ (PowerQuery) P2 =$I2+$O2


    2) already there, if not reply back.


    3)
    Workers of the "Pool" category do not get briefing time added to their regular working hours if they work all the others shifts (P1, P2 and so on).
    Will the Pool members also fill in F8 / M8 / S8 / F12 / S12 for this kind of jobs?
    If so we can use that criteria to determine the calculation (briefing time)


    4) Yes, Power Query is used to get the data re-arange (of the sheet Jahresplan).

    I don't know if there is a translater of the data for PQ.

    But maybe you can open it on your own computer.

    Below a video how to get to the editor.

    How to paste Power Query code ( by Olly)
    https://excel.solutions/2017/11/powe...te-code-video/


    5/6 show in an excel file how the result should look like.

  68. #68
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    1) Yes, I already put that in the plan we are using right now. I already updated that version with the proper personal numbers, names, shifts and so on.

    2) I think that is the formula we are using right now to put some sort of restriction on when the "briefing time" will get paid.

    =WENN(ODER($C2="A";$C2="B";$C2="C";$C2="D");0,33;"")

    Here is a thought...How about we rewrite the formula to look like that:

    =WENN(ODER($G2="F";$G2="M";$G2="S");0,33;"")

    This way whenever anybody is working a F8, F12, M8, S8, or S12 shift, they get the briefing time. I think the first letter of the shift abbreviation is all we need since
    we already set up the Pool shifts with P1, P2 and so forth. Do you think that could work?

    3) See number 2 (I hope number 2 was referring to the briefing time as well. I m confused.

    And yes, I will number everything from now on :-))))

    4) Ok, I followed the instructions in the tutorial video you linked.

    - I clicked in the JAHRESPLAN PQ table....or am I SUPPOSED to click in the JAHRESPLAN? (Never done any PowerQuery thing before)
    - Data - Get Data - From other sources - Blank query
    - In the Power Query Editior i hit the advanced editor button
    - I pasted the code in and changed the ?bertrag thing to ?bertrag
    - Now I have the JAHRESPLAN PQ tab plus a new one with the query I did. Do I just copy the missing stuff over from the JAHRESPLAN PQ to the new tab? We added Feiertag,
    Briefing and Uhr Netto.

    Screenshot_1.jpg
    Screenshot_2.jpg

    You said you changed the text so I could use 3,5....only 3,5 or also 4,5...6,5 and so forth?

    5/6 I ll set up an example Excel file to show you what I mean.
    Last edited by fullenchilada; 08-25-2022 at 09:25 AM.

  69. #69
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I m attaching the example file for 5/6

    It is basically counting the amount of shifts per day and shows the difference to what is needed in a number format

    So lets just say there are 8 F8 shifts needed for Jan 3rd, and there are only 4, Excel will display a 4...and that s the amount of shifts that need to be filled or fixed.
    Attached Files Attached Files

  70. #70
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    2 / 3

    =WENN(ODER($G2="F";$G2="M";$G2="S");0,33;"")

    And yes, I will number everything from now on :-))))
    This one will work if you use that format also for the Pool workers (on the days that briefing time needs to be added).

    4) I showed you the link so you can see where you could find the used code (just for your information).

    5/6 I wil take a look later.



    See the updated file (except 5/6).
    Last edited by oeldere; 08-25-2022 at 10:10 AM.

  71. #71
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    4) Since I have never really used PowerQuery before I was just wondering if it matters in which table you click before you do the Get Data thing.

    The tutorial itself was easy to follow, I just wanna make sure since I ended up with another tab that looked like JAHRESPLAN PQ but without a few columns.

    One quick question:

    Let's assume I wanna be able to use extraordinary shifts with 3,5 or 5,5 or 6,5 hours...Can I simply type in something like T3,5 and it will get recognised in my pivot charts? Or do I need to stick to a certain letter?

  72. #72
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    4) yes it mathers.

    You need to choose the table in the Jahresplan. That is the source table. The sheet Jahresplan PT is the destination table.



    7) I you use my example in #70, you will see the input of S3,50 will work (see date 02-01-2022)

    You need to stick to a certain letter since you will use this letter for other data analyse.

  73. #73
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    4) Ok, so once I use it in the JAHRESPLAN tab, I do get a new tab called Abfrage1. Am I supposed to combine the 2 queries somehow? I always created the Pivot tables for the DASHBOARD NEW tab using the table in the JAHRESPLAN PQ tab, I never touched the JAHRESPLAN PT NEW.

    7) So far we are using the following abbreviations:

    F8, F12, M8, S8, S12, U, K, SU, P1, P2, P3, P4, P5, P6, P7, P8, P9 and P10.

    Any other shifts I would like to label with a T.....so T3,5 or T4,5 so we will know it is out of the ordinary.

    I noticed, when I put 2 times S3,5 or T3,5 in the October plan that Excel does not count them together properly in the DASHBOARD. In one Pivot table it gives me back "?bergabe" 1 and amount of hours 8...In the other Pivot table it counts those 2 shifts as 9.

    sh_plan_1.jpg
    sh_plan_2.jpg

    If I type in two times F8, it gives me back "?bergabe" 1 and 16 as the amount of hours. In the other Pivot table it counts those two shifts togehter as 17. I am bit confused.

    What I always do before I work in the DASHBOARD tab, is to update the data in the JAHRESPLAN PQ and JAHRESPLAN PT new.

    What makes it even more confusing is that I need to somehow move the changes you make to "your" version of the plan to the one we are using without compromising the integrity of the personal data which I already entered in the plan.

    How can I tell Excel to count certain abbreviations together in a certain way.....U, SU (special vacation) and K -> I just need the count...so 2 vacation days or 5 sick days. I do not need the amount of hours.

    F8, F12, M8, S8, S12 -> Excel needs to count them together as either 8 or 12 hours
    P1, P2, P3, P4, P5, P6, P7, P8, P9 and P10 -> Excel needs to count them together as 8 hours...always

    And when we have the extraordinary shifts T3,5 or T4,5 i want Excel to count them togehter regularly so 3,5 plus 4,5 for example.

    8) Can I use PowerQuery to change the column "?bertrag" into UA (Urlaubsanspruch) since Excel obviously does have some difficulty with the German Ue (?)?
    Last edited by fullenchilada; 08-26-2022 at 09:44 AM.

  74. #74
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    refering to #73

    4) See in the sheet (vs 16) in #70

    It seems to me you are using an "old" version of the data.

    There is no sheet "Abfrage" in it.

    There is no sheet "JAHRESPLAN PT NEW" in it.


    4A) So back to basic.

    Use the same file as I use and ask the questions, so it can be solved.
    After that implement that in your original file.


    7) using the T is a good solution. We are implemented that one.
    Only the SU (Sonderurlaub) we need to test.
    I prefer to use 1 letter for this task.
    Maybe you can use X for that.


    8) You mean "Umlaut"

    You need to make sure you use always the same name.

  75. #75
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    4) Ok, from now on lets just stick with the last version you posted and work with that one. Less confusion and I can update it later with the current real names, numbers and shifts.

    There is no sheet "Abfrage" in it because I was testing it on a test file just to see what it would do. I m even doing an Excel PowerQuery online course right now to better understand the system behind it.

    7) Lets just agree on a few shift abbreviations that we are gonna stick with from now on.

    Regular shifts (Monday til Friday)
    F8
    M8
    S8

    Regular shifts (Saturday and Sunday)
    F12
    S12

    Pool shifts (Monday til Friday)
    P1
    P2
    P3
    P4
    P5
    P6
    P7
    P8
    P9
    P10

    Extraordinary shifts
    B8 (work council)
    X3,5......X4,5.....X6,5 (anything that is not 8 or 12 hour shifts)
    T8 (training purposes)

    U (holiday....8 hours....however in the pivot table I will only count the amount and not count them together as 8 hour shifts)
    SU (special holiday...marriage, funeral, moving)
    K (sick days)

    8) Yes, I meant the "Umlaut" because when I open up PowerQuery I dont see "Uebertrag" but instead "?bertrag" because of the Umlaut...I m using Ue here because the forum will mess it up, too. That s why I decided to call it UA (which stands for Urlaubs-Anspruch..the amount of holidays you get)

    9) Did you take a look at the other sample Excel file I sent regarding the "shifts to be fixed"?

  76. #76
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    4) The new version is 17

    4a) There is no sheet "Abfrage" in it because I was testing it on a test file just to see what it would do.

    first the basic, after that we can expand the questions.


    4b) I m even doing an Excel PowerQuery online course right now to better understand the system behind it.

    Great to read that.


    7) shifts on sheet Daten

    B 1 Work council
    F 1 Fr?h
    K 1 Krank
    M 1 Mittag
    P 8 Pool
    S 1 Sp?t
    T 1 Training
    U 1 Urlaub
    W (instead of SU) 1 Sonder Urlaub
    X 1 other shifts


    8) I see "?bertrag" correct in my file.

    The forum has issues with that when we type it in our threats.

    But in your file it also has to be "?bertrag".
    What are your local setting (German or English); maybe it has to do with the local setting.

    9) No, i did not, see also 4a).

    I will take a look at it, after I'm sure the basic is correct and accepted.


    See the attached file.
    Last edited by oeldere; 08-29-2022 at 05:47 AM.

  77. #77
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    4a) first the basic, after that we can expand the questions.

    When I tested it on my example file, Excel generated a new tab called "Abfrage". Like I said, just for testing purposes to see what is going on in the background.


    7) shifts on sheet Daten

    B 1 Work council
    F 1 Fr?h
    K 1 Krank
    M 1 Mittag
    P 8 Pool
    S 1 Sp?t
    T 1 Training
    U 1 Urlaub
    W (instead of SU) 1 Sonder Urlaub
    X 1 other shifts

    Instead of W, could we maybe use U+. My co-workers and my boss will be a bit confused to use W :-). Is it difficult to use SU?


    8) I see "?bertrag" correct in my file.

    The forum has issues with that when we type it in our threats.

    But in your file it also has to be "?bertrag".
    What are your local setting (German or English); maybe it has to do with the local setting.

    My settings are all in German. I noticed it when I opened up the query you did. Maybe because your settings are set to English.

    9) No, i did not, see also 4a).

    I will take a look at it, after I'm sure the basic is correct and accepted.

    Sounds good.

    10) New question:

    I took a look at the plan and there are shifts like B3,50 or K5,50 or P7,50. Is that just to test numbers with decimals? I also noticed U10,50 which will only be U, same as K.

    It is important that all the Pool shifts (abbreviations P1 - P10) do have the value of 8 hours each so I can count them properly using Pivot Tables.

  78. #78
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    4a) "When I tested it on my example file, Excel generated a new tab called "Abfrage". Like I said, just for testing purposes to see what is going on in the background."

    Did this happen when you tested on file 17?


    7)
    Instead of W, could we maybe use U+. My co-workers and my boss will be a bit confused to use W :-). Is it difficult to use SU?
    We choose all 1 letter and use that in splitting the data (letter / value).

    It would be easier to have one Letter (W can also be Z or another not used letter).


    8)
    My settings are all in German. I noticed it when I opened up the query you did. Maybe because your settings are set to English.
    Mine are set up in Dutch, but I expect the German version should be able to work with "Umlaut".

    8a) you have problems using "umlaut" during normal Excel work.

    if so, than it has to be a problem during Power Query.

    9) -

    10) Yes it is just to test

    We can use VLookup to get the hours of the Pool employee.
    Last edited by oeldere; 08-29-2022 at 06:32 AM. Reason: 10 changed

  79. #79
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    4a) Can't remember which version I used to do a test-drive and go crazy with PowerQuery. It was purely for testing purposes

    7) Do you think we could differenciate between U and U8. Maybe we can use "U" for the regular holidays and "U8" for the special holidays (Sonderurlaub).

    Is there a reason why the table in DATEN is setup like that Oeldere?

    Attachment 793840

    What do the numbers stand for?

    8a) I can use Umlaute, no problem here. Maybe it was just a PowerQuery issue. It recognizes the Umlaut in your query as well, so no problem there.

    Attachment 793841

    11) New question regarding the Pivot tables:

    The tab JAHRESPLAN PQ is basiscally all I need to do my statistics with pivot tables right and also the only one I then need to update whenever I make changes to the plan? I d like to do a little clean-up in the tab department ;-)

  80. #80
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    7 / 8 Invalid Attachment specified. If you followed a valid link, please notify the administrator

    Can't read the (both) attachment.


    We use that information, with vLookup to fill column I in Jahresplan PQ.

    I2 =if($G11="P",VLookup($G11,Daten!$L$19:$M$30,2,0),$H11)




    8a) Strange, then it looks a Pivot Query issue.



    9) We have to make sure, we get all data right in Jahresplan PQ.

    In that case we can use that table to analyse the data (with e.g. a pivot table).

  81. #81
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Don't know what the forum did with the attachments lol. Let me try again

    7)

    I2 =if($G11="P",VLookup($G11,Daten!$L$19:$M$30,2,0),$H11)

    So Excel basically looks if there is P in G11. If there is, it looks for P in the data table on tab DATEN in the second column and gives back 8. Correct? ;-)

    So that is why we should never use P7,5 because Excel will always turn it into an 8. Instead we should use X7,5, right?

    So can we use U and U8 for regular and special holidays?

    8) see attachment down below
    Attached Images Attached Images
    Last edited by fullenchilada; 08-29-2022 at 10:43 AM.

  82. #82
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    No, same failure.

    Probably you don't add the attachement like you do with the excel files.

    Try it that way, i guess that will work.

  83. #83
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Already did :-)

    11) Regarding question #11 and the tabs that are all necessary for the plan to work properly. Do I need all the other tabs as well (Jahresplan PT new, Pivot Tabelle and Oeldere PQ old)? I wanna do some clean-up.

    12) New question: Could I change the Workday column in the PowerQuery window to Montag, Dienstag, Mittwoch....so all the days of the week in German. You know my Dutch is pretty bad ;-)
    Last edited by fullenchilada; 08-29-2022 at 10:49 AM.

  84. #84
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Did you get a chance to look at the new tab feature? (looking up missing shifts per date in the Jahresplan and listing it in a tab....see example file #69)

  85. #85
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    7)

    I2 =if($G11="P",VLookup($G11,Daten!$L$19:$M$30,2,0),$H11)

    So Excel basically looks if there is P in G11. If there is, it looks for P in the data table on tab DATEN in the second column and gives back 8. Correct? ;-)

    So that is why we should never use P7,5 because Excel will always turn it into an 8. Instead we should use X7,5, right?
    Above statement is correct.

    But maybe we sometime want to use the correct hours => in that case we use column H (uhr) instead of column I (urh def).


    So can we use U and U8 for regular and special holidays?
    I would not do it that way, work constructive and use always the same patron.
    That is why I suggest to use W (or another letter for that).



    11)
    11) Regarding question #11 and the tabs that are all necessary for the plan to work properly. Do I need all the other tabs as well (Jahresplan PT new, Pivot Tabelle and Oeldere PQ old)? I wanna do some clean-up.
    in my version 17 the data is cleaned up.

    I don't know which #11 you refer to.



    12) I have to take a look if I can change the code below into a german version.

    Please Login or Register  to view this content.

  86. #86
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I would not do it that way, work constructive and use always the same patron.
    That is why I suggest to use W (or another letter for that).


    When it comes to holidays and sick days, they do not need to be listed in any of the statistics (according to the data protection guideline). We already have U and U8 used in the plan. For U Excel gives back a value of 8 and for U8 it gives back 0. If we were to do statistics on them we would only list how many there were, we wouldnt need to count them togehter. So they will only show up in the JAHRESPLAN and in the LEISTUNGSNACHWEIS.


    in my version 17 the data is cleaned up.

    I don't know which #11 you refer to.


    I was referring to the TABS we have in the file, not the data. I was wondering if we could simply delete all unnecessary tabs. There are still Jahresplan PT new, Oeldere PQ (old) and Pivot Tabelle. I dont think we need them or do we?



    Did you get a chance to look at the example file #69?

  87. #87
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    "I was referring to the TABS we have in the file, not the data. I was wondering if we could simply delete all unnecessary tabs. There are still Jahresplan PT new, Oeldere PQ (old) and Pivot Tabelle. I dont think we need them or do we?"
    Those tabs are NOT in version 17, so they don't have tot cleaned up.


    In version 17 we have Jahesplan PQ / Jahresplan / Pivot_Pool_Schicht_Gesamt / Dashboard new / Leistungsnachweis New / Plan_Mitarbeiter /Daten / Feiertage

  88. #88
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Did you get a chance to look at the example file #69?
    This is an empty file, so what needs to be done. Show the input and the expected result.

    See the attached file (from #69).

  89. #89
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I m attaching the file with a few adjustments. I hope you will see what I mean and try to achieve.

    SCHICHTPLAN
    You see the auxiliary table at the end that basically just counts togehter the amount of shifts for that specific day

    SCHICHTBELEGUNG
    Lets just say on Monday, Jan 3rd there needs to be 8 F8 shifts, but there are only 6, then I want Excel to display a 2 in that field on the tab SCHICHTBELEGUNG.

    I already tried with a few functions, but nothing seems to work.


    In version 17 we have Jahesplan PQ / Jahresplan / Pivot_Pool_Schicht_Gesamt / Dashboard new / Leistungsnachweis New / Plan_Mitarbeiter /Daten / Feiertage

    Yeah because the other ones I mentioned are not visible :-).
    Attached Files Attached Files

  90. #90
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Yeah because the other ones I mentioned are not visible :-).
    It would be nice if you have told that, since I don't expect that.

  91. #91
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Where do we find the table how much shifts are needed for F8 / M8 etc.

    I expected this on the sheet Daten, but there is also no table with this information.

  92. #92
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    #90 Sorry, that was my fault.

    #91 I am attaching the example file. Using "=sumproduct" I m counting together the shifts in question for each individual day. Then I want Excel to compare the result with the table in the JAHRRESPLAN (highlighted in the screenshot) and give me back the difference, so I know which shift is
    needed where.

    In the picture I m attaching you can see how many shifts are needed.
    Attached Images Attached Images
    Attached Files Attached Files

  93. #93
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Ok, had an #Wert error before and then realized it was because I was substracting 0 from 0 :-).

    This is what I got so far, which is working fine. Just wondering if there had been another work-around without having to set up two auxiliary tables.
    Attached Files Attached Files
    Last edited by fullenchilada; 09-03-2022 at 06:20 AM.

  94. #94
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Then I want Excel to compare the result with the table in the JAHRRESPLAN (highlighted in the screenshot) and give me back the difference, so I know which shift is needed where.
    I expect you need the NOT highlighted values in the sceenschot (SOLL) instead of the highlighted values in the screenshot (IST).

    You can just subtract (SOLL -/- IST).


    But since you already have those data on the sheet Jahresplan, why is there a need to have them in another sheet (visual proposal)?


    If so, implement this in your excelfile you posted.
    You expect me to compare differant sheets received on differant dates.
    I'm willing (and able) to help you, but please help me, helping you.

  95. #95
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I know the shift difference is already in the plan, however, for data protection purposes my co-workers wanted to have it displayed on a different sheet so people can get an overview of the shifts that are still free without noticing any other information assigned to their co-workers.

    Here is what I came up with, which looks pretty nice in my opinion ;-). What do you think?

    I m still wondering, however, if I can simply delete all the other "unnecessary" tabs (invisible) in the excel file. I m guessing Jahresplan PQ is the only one I really need, right?
    Attached Files Attached Files
    Last edited by fullenchilada; 09-04-2022 at 09:15 AM.

  96. #96
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    See #89 "In version 17 we have Jahesplan PQ / Jahresplan / Pivot_Pool_Schicht_Gesamt / Dashboard new / Leistungsnachweis New / Plan_Mitarbeiter /Daten / Feiertage"

    I expect those sheets needs to be available. Other sheets can be deleted.


    Edit

    Don't hide rows and columns in your file (at least not in the testing fase).

    I don't like to seek where the excepted data is available (not, since there hidden).
    Last edited by oeldere; 09-03-2022 at 08:05 AM. Reason: Don't add rows or columns in your file

  97. #97
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Here is what I came up with, which looks pretty nice in my opinion ;-). What do you think?

    I should calculate the data with a formula on the Jahresplan tab.

    After that I would refer to the Jahresplan tab to get the results.



    Advantage: the same calculations will only calculated once.

    Addiotional advantage, you don't need to hide rows.

  98. #98
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    So doing the calculation on the Jahresplan tab (comparing the two tables with each other) and have the result displayed on the tab SCHICHTBELEGUNG?

  99. #99
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    yes, that is how I should do it.

  100. #100
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I edited this post. I somehow managed to get an error message while trying to set up the new Dashboard. I just went back to the previous file and started over.

    Could you take a look at STATISTIK, which is supposed to be the new DASHBOARD and tell me why I can't have Excel display the amount of Feiertage (holidays) in the last column.

    And with the 4 pivot tables I have, is there a way to combine them into one?
    Attached Files Attached Files
    Last edited by fullenchilada; 09-04-2022 at 10:13 AM.

  101. #101
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    @fullenchilada

    You started with an ld sheet. So there could be faillures in it, which has been solved in later editions.

    Please work systematic.

    And don't ask another question before the earlier one is solved.

    You did not used the solution in #99.



    So I think it would be easier starting from the excel file in #76 (version 17)

    Delete all hidden sheets in this version.

    Unhide all hide row in the sheet Schichtenbeleg.

    Change the formula on Schichtenbeleg (or use copy / paste if the employsee are not allowed to see the formula).



    Feiertag
    Feitertag in filter box and select with x.
    Uhr (def) in value box and format on 2 decimals.


    And with the 4 pivot tables I have, is there a way to combine them into one?
    What is the use of that, since you show differant calculations?
    Last edited by oeldere; 09-05-2022 at 03:08 AM. Reason: text changed

  102. #102
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    SCHICHTBELEGUNG

    On the Jahresplan tab, we use a basic =countif function to count all the Pool shifts that start with P

    =Z?HLENWENN(Tabel3[01-01-2022];"P*")

    Is there a way to count P2 and P8 only? Then I could easily rework the SCHICHTBELEGUNG tab and have it use information on the tab JAHRESPLAN instead of creating two auxiliary tables.

    Using the following formula did not work:

    =Z?HLENWENNS(H7:H46;"P2";H7:H46;"P8")

    And with the 4 pivot tables I have, is there a way to combine them into one?
    What is the use of that, since you show differant calculations?


    The thought behind it was to have all necessary information in columns right next to each other (Hours, Briefing, Hours net, Saturday, Sunday, Amount of holidays and so on)

  103. #103
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Holiday on a weekend

    We came across a little issue with holidays falling on a saturday or a sunday. Excel counts them as if the employee had worked on those days. So if you happen to have vacation on Saturday or Sunday, those vacation days will count as hours worked on a weekend. I added a new colum in Jahresplan PQ and tried to solve this issue with an "if" formula, however, this is how far I came:

    =WENN(ODER(UND([@Shift]="U";[@Workday]="zaterdag");UND([@Shift]="U";[@Workday]="zondag"));"";12)

    However, now every other day that happens to not be Zaterdag or Zondag gets the 12 hour treatment :-(.

  104. #104
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Did you changed the file according to #101.

    If so, you could add the excel file.

  105. #105
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    Hey Oeldere,

    sorry I did not keep up in the past few weeks. Work and personal life kept me pretty busy.

    The excel plan is working nicely and my co-workers and myself have made good progress in making sure it is meeting our expectations.

    With the year 2022 coming to an end, I have been wondering about updating the excel plan for the year 2023 and making a copy of the plan for it.

    I went ahead and changed the date in F4 into 01.01.2023. The rest of the months seemed to follow nicely. However, line 6 with the filters gives me a headache since I cannot simply go ahed and update the dates in that one without Jahresplan PQ giving me an error message when I try updating the data. I d be very grateful if you could help me out and point me in the right direction.

    As always I m looking forward to hearing from you.

    Greetings

  106. #106
    Registered User
    Join Date
    07-05-2022
    Location
    Germany
    MS-Off Ver
    Excel 2021
    Posts
    54

    Re: Dynamischer Jahres/Montas und Einzelplan mit statistischen Funktionen

    I don't seem to get the hang of updating it unfortunately

+ 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] Funktionen MATCH
    By Frederik123 in forum Non English Excel
    Replies: 6
    Last Post: 04-06-2013, 06:08 AM
  2. Funktionen MATCH
    By Frederik123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-06-2013, 04:26 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