+ Reply to Thread
Results 1 to 2 of 2

Guidance on VBA Rota/Scheduler procedure/algorithm

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    1

    Question Guidance on VBA Rota/Scheduler procedure/algorithm

    Hello

    I am looking for some help in creating an Excel VBA solution that will create a rota/schedule allocating staff to service users using an algorithm. I believe there are already existing names for this kind of problem/algorithms but not entirely sure what to refer to it is.

    Here is my scenario:

    For the following week a spreadsheet contains a list of service users who require visits from staff. I am trying to come up with a way of allocating staff to visits which must take into account skill level required, gender required, staff availability and less important the distance/time to travel between visits.

    I have a worksheet that contains the list of staff who are available for the following week. Each row of data contains their name, gender, skill level, home postcode, day working, start time and end time. A member of staff may be listed more than once on the same day as they may be available for hours in the morning and also in the evening.

    Another worksheet contains the list of service users and visits required for the following week. Each row of data contains their name, postcode, day of visit, time of visit, visit duration, gender required (i.e. must be seen by a male/female), skill level required (i.e. any, certified) and the number of staff required for that visit (i.e. 1 or 2). Again a service user may appear more than once on the same day as they may require multiple visits at different times of the day (i.e. morning and evening)

    I have already created some VBA functions to deal with handling of postcodes and getting latitude/longitude co-ordinates along with a function to calculate the distance between two points as the crow flies. At present the distinct values of postcodes with there co-ordinates are being stored on a helper sheet for the VBA to reference.

    What I am really looking for is guidance on to even being creating a procedure/algorithm which will produce a suggested rota/schedule, this could be a simple table with pairings between staff and visits. As mentioned earlier the process must always make suitable pairings based on:
    • Skill Level Required
    • Gender Required
    • Staff Availability

    Least important matches must take into consideration the distance required to travel between visits. I believe this is referred to as a Genetic Algorithm?

    There may be instances where there are too many service users for the available staff and vice versa. Making use of all staff isn't necessary provided all visits are dealt with, if all visits cannot be paired due to a lack of staff availability then this needs to be listed as being unmet.

    Any help is greatly appreciated and I am happy to discuss further and share my existing template spreadsheet with some example data.

  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: Guidance on VBA Rota/Scheduler procedure/algorithm

    Hi,

    This sounds a really open question, and one which could start to get really complex. Rather than reinvent the wheel have you googled to see what's out there.

    I've just tried with
    excel scheduling resources working patterns

    and come up with many excel applications. OK some of them may not be free, but usually they have a trial period offer. It might serve your best interests to check out a few of those first
    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.

+ 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. Running Excel from task scheduler. Scheduler doesn't end
    By tony h in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-31-2013, 09:49 PM
  2. [SOLVED] Create a time delay at end of procedure that will then call on next procedure
    By Clay Shooter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2013, 05:56 AM
  3. Replies: 0
    Last Post: 10-02-2012, 03:06 PM
  4. Using a variable calculated in a procedure in another procedure.
    By Trinidad3 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-06-2010, 04:51 AM
  5. MIN() MAX() Guidance HELP!
    By Solida in forum Excel General
    Replies: 1
    Last Post: 03-31-2009, 06:54 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