+ Reply to Thread
Results 1 to 6 of 6

Spreading manhours over partial month

Hybrid View

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2010
    Posts
    3

    Spreading manhours over partial month

    I am trying to spread hours over 6 months (eg.) but the first and last months are not full month. What formula do I use to calculate partial months? Right now I have the hours spread evenly over the 6 months as if they are all 6 full months. But this is not true. How do I solve the partial months issue?

    Thank you,
    Faizah

    =IF(J$5="","",IF(AND($H256>J$5,$H256<K$5),$F256,IF(AND($H256<=J$5,$I256>=J$5),$F256,"")))

    where H256 is the START and I256 is the FINISH

    =D256/((I256-H256)*12/365)

    where D256 is the hours to spread if all months were full.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Spreading manhours over partial month

    There are numerous examples in the workbook at https://www.box.com/shared/7xm2kt408n
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-20-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Spreading manhours over partial month

    Anybody else has a different answer?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Spreading manhours over partial month

    Looking for a different answer, or a different method, or not understand the examples, or disagree with the results?

  5. #5
    Registered User
    Join Date
    02-20-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Spreading manhours over partial month

    Thanks for your response. The NETWORKDAY function calculates 5 working day instead of calendar days. WORKDAY function does the same. The closest I got to was the DAYS360 function that calculates based on 12 months * 30 days each month. Your sample was great and helps with smaller data range but I am trying to spread 5 million hours over 6 years and I got to 87% of the hours. 95% would have been acceptable. I stuck with the WORKDAYS360 function because that was the closest I could get to using what was availble in Excel.

    Thanks again,
    Faizah

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,717

    Re: Spreading manhours over partial month

    Example #4 in shg's worksheet should calculate the actual days of a date range within each month - you could multiply that by the total hours divided by the total days to get an hours figure for each month, so a 31 day month would get more hours than a 30 day month and partial months will get a pro-rata number of hours assigned, is that what you need?
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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