+ Reply to Thread
Results 1 to 3 of 3

Autosort workers in working schedule on the basis of two criteria

  1. #1
    Registered User
    Join Date
    09-20-2016
    Location
    Slovenia
    MS-Off Ver
    2010
    Posts
    1

    Autosort workers in working schedule on the basis of two criteria

    Hello.

    I would really appreciate any help on this.

    I am trying to create a working schedule in table 3 (tab 3) that autosort available caregivers from table 1 (tab 1) to caretakers from table 2 (tab 2) on a specific day of month. Generated schedule must consider that caregivers work only on specific days of month and can offer their care only to some of caretakers (which allow to work with them). Each caregiver spends 1 hour of his/her working time at one caretaker so that he/she can visit more than one caretaker per day. Daily working hours must be roughly divided among available caregivers.

    Table 1 shows which caregiver is available for work on a specific day of month.
    Table 2 shows which caretaker allows specific caregiver to offer him a care (work with him).

    I've attached the spreadsheet I am working on.

    Appreciate any help possible
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-21-2013
    Location
    zimbabwe
    MS-Off Ver
    Excel 2003
    Posts
    124

    Re: Autosort workers in working schedule on the basis of two criteria

    Hi trinitron86
    You try this array formula for cell B3 in Table 3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Confirm it with CTRL+SHIFT+ENTER theo fill across AF3 then down
    Note: There is the function RAND() in above formula, so you can change the Schedule by press F9 button .
    Hope it helpfull

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

    Re: Autosort workers in working schedule on the basis of two criteria

    This is going to fall more into the 'help' than 'solution' category. It primarily considers days when caregivers work and use conditional formatting to identify conflicts between caregiver and caretaker which are then overcome by making changes in the order of the names on table 1/table 3 (done on a monthly basis). It provides a fairly equal distribution of hours between the caregivers, as there should be no more than 1 hour difference between the caregiver(s) getting the most and least hours assigned on any given day.
    The formula that populates table 3 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note: Jenny is moved to the top of table 1 which greatly reduces the number of conflicts on table 3.
    Note: Denis and Alen | George and Neum were switched on table three which reduced the number of conflicts (highlighted in red*).
    *The conditional formatting rule that highlights conflicts (the conflict in this case) is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

+ 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. Want to collect all working activities on day basis. Formula Help Needed
    By Rinkojhon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-11-2015, 09:59 AM
  2. Replies: 0
    Last Post: 03-16-2015, 01:50 PM
  3. function to list which workers "work" during given timeslot in a schedule
    By mtabrah in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2014, 08:31 PM
  4. Multi year invoicing schedule on the basis of billing term and billing period.
    By ca.ashishagrawal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-29-2013, 05:19 PM
  5. Transform monthly schedule to week basis
    By Esprimo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-19-2013, 09:04 AM
  6. [SOLVED] Sort out working hours for workers based on company / project
    By HammerStein in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-18-2012, 10:21 AM
  7. [SOLVED] Getting the particular value on the basis of given criteria ?
    By Luqman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2006, 03:44 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1