+ Reply to Thread
Results 1 to 5 of 5

Evenly distrubute hours across date range by month and year

  1. #1
    Registered User
    Join Date
    07-07-2012
    Location
    Pennslyvania, usa
    MS-Off Ver
    Excel 2010
    Posts
    13

    Evenly distrubute hours across date range by month and year

    I have a formula which will take hours and assign them evenly across a month based on a specified date range. The current formula does not have the ability to distribute hours across a date range evenly between two consective years . Current formula below and attached spreadsheet. Would appreciate some direction on correcting the formula.
    =IF(AND(MONTH(D$2)>=MONTH($B3),MONTH(D$2)<=MONTH($C3)),IF(MONTH($B3)=MONTH($C3),$A3,IF(MONTH(D$2)=MONTH($B3),$A3*(NETWORKDAYS($B3,EOMONTH($B3,0))/NETWORKDAYS($B3,$C3)),IF(MONTH(D$2)=MONTH($C3),$A3*(NETWORKDAYS(EOMONTH($C3,-1)+1,$C3)/NETWORKDAYS($B3,$C3)),$A3*(NETWORKDAYS(EOMONTH(D$2,-1)+1,EOMONTH(D$2,0))/NETWORKDAYS($B3,$C3))))),"")

    Formula will work as long as it stays within the same year
    hours Start finish Nov-14 Dec-14
    50 11/1/2014 12/29/2014 24.39 25.61
    Attached Files Attached Files
    Last edited by hamish100; 11-03-2014 at 10:44 PM.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Evenly distrubute hours across date range by month and year

    give your result manually at least for 2 or 3 examples
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Evenly distrubute hours across date range by month and year

    D3=
    Please Login or Register  to view this content.
    E3 =
    Please Login or Register  to view this content.
    Assume your formula is working, just the if checking is not correct.
    Compare month and year in the 1st IF function.
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  4. #4
    Registered User
    Join Date
    07-07-2012
    Location
    Pennslyvania, usa
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Evenly distrubute hours across date range by month and year

    Thank you. The formula works great.

  5. #5
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Evenly distrubute hours across date range by month and year

    Welcome.Thanks for feedback!

+ 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] Look up month and year value using ID # and date (within a range)
    By ryanpetersen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-28-2014, 02:17 AM
  2. [SOLVED] SUM a range if the DATE is in the same MONTH and YEAR, AND is from the same acount
    By james goulding in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-15-2014, 07:18 AM
  3. Need to convert Month/Date/Year to Year/Month/Date so excel will recognize
    By juliettelam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2014, 04:17 PM
  4. How do you distrubute columns evenly in Excel 2000?
    By Paula in forum Excel General
    Replies: 1
    Last Post: 04-06-2006, 11:40 AM
  5. [SOLVED] Locate month n year from range of date
    By Rao Ratan Singh in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-02-2006, 05:20 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