+ Reply to Thread
Results 1 to 3 of 3

Calculate start date based on working hours and end date

  1. #1
    Registered User
    Join Date
    06-11-2010
    Location
    Ghent, Belgium
    MS-Off Ver
    Excel 2003
    Posts
    17

    Calculate start date based on working hours and end date

    Hello,

    I need to calculate calculate required start date + time of a task based on task duration expressed in working hours and end date + time. I found formula to calculate number of working hours between 2 dates:

    =(NETWORKDAYS(A2,B2,holidays)-1)*(J$3-J$2)+MOD(B2,1)-MOD(A2,1)

    A2 = start time/date
    B2 = end time/date
    J2 = MF start time, e.g. 08:00
    J3 = MF end time e.g. 17:00

    However I need similar formula to calculate start date + time starting. Assume working hours from 8:00 to 17:00, duration is 13 hours and start date + time = 16/06/2010 9:00, then formula should return 14/06/2010 13:00. Note that formulate should also exclude weekends.

    Is there anyone who can help?

    Regards,

    Kaatje

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

    Re: Calculate start date based on working hours and end date

    Quote Originally Posted by kaaver View Post
    Assume working hours from 8:00 to 17:00, duration is 13 hours and start date + time = 16/06/2010 9:00, then formula should return 14/06/2010 13:00.
    Hello Kaatje,

    Presume you mean 17/06 not 14/06?

    Assuming start time/date in A2 and hours to add in B2 (in time format like 13:00) then you can use this formula

    =WORKDAY(A2,CEILING((B2+MOD(A2,1)-J$2)/(J$3-J$2),1)-1,holidays)+MOD(A2,1)+B2-CEILING(MOD(A2,1)+B2-J$2,J$3-J$2)+J$3-J$2

    A2 must be within working hours
    Audere est facere

  3. #3
    Registered User
    Join Date
    06-11-2010
    Location
    Ghent, Belgium
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Calculate start date based on working hours and end date

    Hello,

    Sorry mistake in my example description: Assume working hours from 8:00 to 17:00, duration is 13 hours and END date + time = 16/06/2010 9:00, then formula should return 14/06/2010 13:00 as start date. I need to calculate start date, does formula still count then?

    Regards,

    Kaatje

+ 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