+ Reply to Thread
Results 1 to 6 of 6

Spread the number of hrs available proportionately to the available hrs at each interval

  1. #1
    Forum Contributor
    Join Date
    11-07-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    126

    Spread the number of hrs available proportionately to the available hrs at each interval

    Hi guys,

    I am looking for ideas from the wealth of knowledge within the forum - I will try to explain as best I can but I apologise in advance if I haven't done a good a job.

    So, I have a worksheet with two tables (there can be more if needed) the tables are split into 15 minute interval segments going top to bottom. The left table is currently blank with the amount of hours that need to be allocated to the day at the bottom of it (in this case 11.81 hours), the right table shows me how many people I have available during each interval.

    I need a formula, function or even VBA that will look at the number of people I have available at each interval and distribute it in a weighted fashion towards the intervals where there is more staffing available, I only want it to allocate agents if the staffing is over 5. It would also be helpful to have a warning if I cannot fill the required hours with the number of people I have available but if not its ok.

    I have attached a spreadsheet as an example, if anyone could help it would be fantastic. Again, i apologise if I haven't explained this well
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Spread the number of hrs available proportionately to the available hrs at each interv

    I'm not sure if this is what you want, but I've enlisted the help of some helper cells.

    Cell E34 is the hours of work available (assuming that people work one hour per hour). The formula is: =SUMIFS($E$2:$E$33,$E$2:$E$33,">5") which is the sum of the available hours ind column E, but only for those cells where the number is greater than 5.

    Column F is a helper column with the formula: F(E2>5,E2/$E$34,0). This prorates the work by number of people available - the work is allocated only if the number of people for that hour is greater than 5. The total of this column is 100%.

    Column G is the number of hours sorted out by Percent * Total Hours - this column adds up toe the 11.81 hours.

    As for the warning, I have this formula in cell E35: =IF(E34>B34,"Workload OK","Too much work") - Basically it says that if the work you have available exceeds the work you have to do, you're OK.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    276

    Re: Spread the number of hrs available proportionately to the available hrs at each interv

    how much work can 25 people really get done in 15 minutes? I just spent more than 10 trying to figure out the question.
    If it'd make you feel better using my answer because of my street cred, then you can go ahead and click Add Reputation below to improve it.

  4. #4
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    276

    Re: Spread the number of hrs available proportionately to the available hrs at each interv

    @dflak, I do love your approach; however allow me to contest the value of G1. If I'm reading this correctly it'd be 0.90 of an hour yet the max for any given interval is 15 minutes...

  5. #5
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Spread the number of hrs available proportionately to the available hrs at each interv

    Here is a version that rounds the calculations out to the nearest quarter of an hour. However, you may wind up a bit short or over due to the rounding.
    Attached Files Attached Files

  6. #6
    Forum Contributor Gregor y's Avatar
    Join Date
    10-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010 32-Bit
    Posts
    276

    Re: Spread the number of hrs available proportionately to the available hrs at each interv

    Quote Originally Posted by Gregor y View Post
    If I'm reading this correctly it'd be 0.90 of an hour yet the max for any given interval is 15 minutes...
    I think I was a bit hasty on this one, it is 0.90 of an hour, but 0.90 of an hour for 25 workers which is a total of 25*15 minutes available for the interval.

    as you had it the interval would be overloaded at TotalHours*60/TotalPeople>15 or B34>81.75

    The way I read the question was to convert the TotalHours to people and then spread those integer people as evenly as possible to each of the intervals staying >= 5 per interval used.

+ 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. Interval between Occurrences, Counting gap from >= number to the next number
    By PHaRTnONu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2017, 01:35 AM
  2. Replies: 1
    Last Post: 12-01-2016, 07:26 AM
  3. [SOLVED] Calculate proportionately across all funds
    By allipops in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2016, 01:01 PM
  4. Replies: 1
    Last Post: 04-29-2014, 04:42 AM
  5. Return value of interval number
    By jacvgraca in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-13-2014, 12:39 PM
  6. [SOLVED] Distribute proportionately
    By mshtuhin in forum Excel General
    Replies: 6
    Last Post: 01-16-2010, 12:28 AM
  7. [SOLVED] Calculate a number based on an interval
    By Vitalie Ciobanu in forum Excel General
    Replies: 4
    Last Post: 03-19-2006, 04:00 PM

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