+ Reply to Thread
Results 1 to 5 of 5

Work distribution macro

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    NY, USA
    MS-Off Ver
    Excel 2010
    Posts
    44

    Work distribution macro

    Hi- I am looking for some assistance with a macro.

    Objective - Distribute work evenly between available resources by Inquiry age (Column B). If available resources is 3 and number of inquiries in a age bucket is 7, randomly assign the last inquiry. So if there are 5, 4 day old inquiries, assign 3 to John Doe & 2 to Scooby. Loop thru all age buckets following the same logic. Count available resources which could vary and distribute work accordingly.
    If available resource is 1, then assign by age order. This is daily distribution, so value from F & G is also taken into account. A resource is expected to work 6 inquiries per hour in an 8 hour day.work distribution.xlsx

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Work distribution macro

    a very simple way of doing this is as follow:
    1. sort inquiry from the oldest to the new ones.
    2. assign from top to bottom the inquiry by doing a rotation in the available ressources.
    Here is the macro:
    Please Login or Register  to view this content.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    11-15-2012
    Location
    NY, USA
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Work distribution macro

    Thanks for your response but I am getting type mismatch error with c_ell.Offset(0, 3) = Avail_ress(I, 1) highlighted.

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Work distribution macro

    You must use a title for the supervisors' column.
    If you have only one supervisor, it gives you this error because Avail_ress is no longer an array. By using a title in cell I1, it prevents this issue.
    hope this help

  5. #5
    Registered User
    Join Date
    11-15-2012
    Location
    NY, USA
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Work distribution macro

    Thanks for all your help, worked awesome!!

+ 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. Data Distribution Problem (my Filters don't work either!)
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-13-2013, 04:01 AM
  2. Work Distribution over Weeks
    By Jdnethaji in forum Excel General
    Replies: 4
    Last Post: 01-27-2013, 05:25 AM
  3. work distribution through macros. Simultaneous users
    By megapist in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-27-2012, 05:21 AM
  4. Replies: 3
    Last Post: 03-25-2009, 11:04 AM
  5. distribution of work in excel
    By deepika.nowley in forum Excel General
    Replies: 0
    Last Post: 02-20-2008, 02: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