+ Reply to Thread
Results 1 to 5 of 5

Mathematical/Excel Problem - Distributing work based on time and working with averages

  1. #1
    Registered User
    Join Date
    09-09-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Mathematical/Excel Problem - Distributing work based on time and working with averages

    Hi Guys,

    Some of you guys are at a level of excellence I will never achieve, so I would like to ask for some help!

    So I have an excel/mathematical problem. I think it edges far more towards a mathematical problem actually. It involves the allocation of work on a practical level, but at a base level it's just numbers. So here we have an example:

    First of all there's an amount of work, that takes a certain amount of time to do (Time Standard) which results in a certain amount of hours it takes to do the work.

    There's a list of people in column a, and a list of their contracted hours in b, in c we have a percentage, which is their hours divided by the hours required to do the work.

    I have a formula in d that divides the work total by the sum of all the percentages one by one, and then times it by the percentage in that row, this gives me an average proportionate to that persons working hours, and I have found this is better than just dividing it by the number of people and getting a flat figure.

    The problem is that when the amount in column d is higher than what that person can do in their contracted hours, in column e I have an if statement that selects the max they can do instead. This arises in problems where even though there are more minutes/hours spare per person, all the work has not been allocated out, resulting in inefficiency. Obviously it isn't an issue if all the hours are used up because that's just a general lack of resource.

    Is there a way around this? I have attached the spreadsheet. This problem has been puzzling me for quite some time, and the only way I can see around this is adding a column next to it where you manually top up the work until it has all been handed out.
    Now this wouldn't be too bad on the example provided, but the real thing is on a larger scale and has to work with hundreds of people so would be quite time consuming.

    Any solutions to the problem are welcome, even if someone provides an entirely better way of distributing a whole number between a group of rows proportionate to values like the hours listed.

    Thanks for listening!
    Attached Files Attached Files

  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: Mathematical/Excel Problem - Distributing work based on time and working with averages

    It's not clear. at least to me, what your ideal result should be. If you manually add the results you'd like to see along with notes as to the thinking you've applied to obtain those results then no doubt we'll be able to come up with a solution. Colum

    En passant your existing formulae seem unnecessarily complicated with columns D & F producing the same values so why the duplication? Column D(4) could be calculated with =$D$4*C7 ...etc.
    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
    09-09-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Mathematical/Excel Problem - Distributing work based on time and working with averages

    Hi Richard,

    Thanks for replying, my ideal result is the complete utilisation of hours. Now whether this is worked into the average formula at the time, or is tacked on afterwards I'm not fussed about.

    I think you're right about that column being needlessly complicated, i should just change it to the total x percentage like you said, it achieves exactly the same thing.

    So scenario 1: Type in 470 into cell B2, and you'll see it only allocates out 467. But as you can see from the Hours left column there is still time that can be utilized to do the 3 difference.

    I need that difference split out intelligently amongst the persons that have the time to do it basically.

    Oh and although column F seems like a duplication it basically limits each person so they only get allocated what they can do in their hours, type in a higher number for the total to see how this limits it.
    Last edited by Naaiif; 10-30-2015 at 09:22 PM.

  4. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Mathematical/Excel Problem - Distributing work based on time and working with averages

    I'm not sure I understands you problem properly.

    In your uploaded file you got 100,2 hrs of work to be done by 16 people so the average hrs pr person is 6.2625

    Taking the average of the work hrs for the 16 persons this is 6.35 so in you cant do better than this as this is so close to 6.2625 that everybody must work.

    But if the demand for work was 82.2 hrs should everybody work or should a number of persons be laid off in order to meet the target value 82.2 as close as possible? If you wanted to find who should work to get as close to 82.2 you could use the Excel add-in Solver.

    In this case Solver says:

    Persons b, g, l, and p should not work then you reach the target value 82.2 hrs

    Alf

  5. #5
    Registered User
    Join Date
    09-09-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Mathematical/Excel Problem - Distributing work based on time and working with averages

    Hi Alf,

    Sorry for being unclear, if the demand for work was 82.2 hrs the answer would be everyone would work.

    Problem 1: Sometimes all of the work total isn't distributed despite there being more hours available to do this, i know this may be a problem with the logistics and mathematics rather than excel, can anyone think of another way or an additional step to distribute the rest of the work when these situations arise?

    Aside from this, is there an alternative way of going through all the persons, distributing work one by one until the total is exhausted? Or would this require vba?

+ 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. [SOLVED] Solve mathematical problem
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 12-26-2014, 04:53 PM
  2. Distributing work across the calendar days based on effort taken per task
    By sriramdh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2014, 02:11 AM
  3. Replies: 7
    Last Post: 01-28-2013, 12:20 PM
  4. How do I enter a working mathematical formula?
    By ianpwilliams in forum Excel General
    Replies: 4
    Last Post: 12-09-2011, 08:56 AM
  5. Replies: 27
    Last Post: 11-19-2009, 11:50 AM
  6. [SOLVED] Distributing Estimated Hours over calendar working days.
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2006, 12:15 AM
  7. Integration (mathematical) problem
    By Jamie-nss in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2005, 12:37 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