+ Reply to Thread
Results 1 to 10 of 10

Automated random work schedule

  1. #1
    Registered User
    Join Date
    07-09-2021
    Location
    Germany
    MS-Off Ver
    365
    Posts
    6

    Automated random work schedule

    Hello,

    I am trying to create a automated work schedule but as I don't have a lot of experience with Excel, I'm struggling.


    We have 5 days a week open (Tue-Sat), every day apart from friday should 5 persons be working. On Friday 6.

    Here the "normal" times:
    Tuesday:
    2 persons 5.00-13.00
    1 person 6.00-12.00
    1 person 10.30-18.00
    1 person 13.00-18.00

    Wednesday:
    1 person 5.00-13.00
    1 person 5.00-13.30
    1 person 6.00-12.00
    1 person 13.00-18.00
    1 person 13.30-18.00

    Thursday:
    2 persons 5.00-13.00
    1 person 6.00-12.00
    2 persons 13.00-18.00

    Friday:
    2 persons 5.00-13.00
    1 person 6.00-12.00
    1 person 8.00-12.00
    1 person 10.30-18.00
    1 person 13.00-18.00

    Saturday:
    2 persons 5.00-12.00
    1 person 6.00-12.00
    1 person 6.30-12.00
    1 person 7.00-12.00

    Each person should try to come as close as possible to their weekly hours.
    For some that's 15, others 20, others 8, others 40, others 25.
    In total there are 10 workers, but it should be possible to add new workers.

    It should also be possible to give excel the information on which date it is not possible to work for each person f.e. because of medical problems.

    Thanks a lot for your help.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Automated random work schedule

    Are people limited to one time slot per day?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-09-2021
    Location
    Germany
    MS-Off Ver
    365
    Posts
    6

    Re: Automated random work schedule

    Yes, each person is only allowed to work once a day.

  4. #4
    Registered User
    Join Date
    07-09-2021
    Location
    Germany
    MS-Off Ver
    365
    Posts
    6

    Re: Automated random work schedule

    Yes, each person is only allowed to work once a day.

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

    Re: Automated random work schedule

    Hello gsebi and Welcome to Excel Forum.
    Have you looked at the "Similar Threads" listed in the window at the bottom of this page.
    I feel that we are going to need more information and probably a manually produced file to serve as a guide with which we can compare the results of our proposed formulas/code.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    07-09-2021
    Location
    Germany
    MS-Off Ver
    365
    Posts
    6

    Re: Automated random work schedule

    Hello JeteMc,
    first of all thanks for your post. I have attached what I have managed so far as a file. I tried on page 2 with some calculations but at the end I didn't know how that could help me to automate it.
    Hope with my explanation from the top of the post everything should make sense now. The employees numbers will be changed by names later logically.

    Thanks a lot for all your help in advance!
    Attached Files Attached Files
    Last edited by gsebi; 07-14-2021 at 03:36 PM.

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

    Re: Automated random work schedule

    It seems as if you are not too far along with this project, in which case I recommend that you convert the entry from a matrix style as originally displayed on the Schedule sheet to a records format as displayed in E8:I33 on the Calculations sheet.
    The formula for then become a relatively simple: =SUMIFS($H9:$H33,$I9:$I33,E3)
    Let us know if you have any questions.

  8. #8
    Registered User
    Join Date
    07-09-2021
    Location
    Germany
    MS-Off Ver
    365
    Posts
    6

    Re: Automated random work schedule

    Thank you very much.

    The only thing that's missing me know is the randomized process. When i update excel then there should be new employees every time still trying to come close to there number of hours they should work.
    I think at work, variety is always good.
    How can I randomize that and automate it so I don't have to put the employees in manually?
    Furthermore, I would need the possibility to indicate when a person can not work and this date/dates are then automatically not entered for this employee.
    Attached Files Attached Files
    Last edited by gsebi; 07-15-2021 at 11:30 AM.

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

    Re: Automated random work schedule

    As to randomization perhaps setting up schedules where employees switch days/hours with others that have similar total hours that they should work and then having a formula index which randomly selected schedule to use that week would help.
    The formula for F8:F33 is: =INDEX(I8:J8,MATCH(MIN(I$6:J$6),I$6:J$6,0))
    Press the F9 key to change change the random values in I6:J6 (note that this will not always change the schedule selected).
    As to employees that can not work on certain days, I feel that the easiest answer is to manually replace their number in column F. Note that once a number is manually placed in column F the formula in that cell is erased, so before the producing the next week's schedule select cell F8 and double click the fill handle to place the formula back into the cells below.
    Let us know if you have any questions.

  10. #10
    Registered User
    Join Date
    07-09-2021
    Location
    Germany
    MS-Off Ver
    365
    Posts
    6

    Re: Automated random work schedule

    Hello,
    How is it possible to create a shift schedule which is predefined (like above) but should change only when a person is ill. Then the person who is furthest away from the hour target should step in. It should be possible to specify somewhere when which person exactly (day and time) is sick. This could be done by ticking.

+ 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. Auto Create Daily Break Schedule from Weekly Work schedule
    By colema62 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2021, 04:31 PM
  2. automated work schedule generator
    By pipsmultan in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-23-2020, 04:02 AM
  3. Automated Break Schedule
    By northernwarrior in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2020, 05:57 PM
  4. [SOLVED] Automated Work Schedule
    By gum605 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-22-2016, 03:52 AM
  5. Automated Schedule
    By viperezai in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2015, 05:14 PM
  6. Replies: 1
    Last Post: 04-10-2010, 04:24 AM
  7. [SOLVED] How do I set up monthly random work schedule for 60 hours monthly
    By The Ace of the Base in forum Excel General
    Replies: 0
    Last Post: 04-04-2006, 02:40 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1