+ Reply to Thread
Results 1 to 9 of 9

Start Date + Hours to produce end date & Time using Business Hours (AND include weekend)

  1. #1
    Registered User
    Join Date
    01-28-2016
    Location
    England
    MS-Off Ver
    365
    Posts
    4

    Start Date + Hours to produce end date & Time using Business Hours (AND include weekend)

    Hi Guys,

    I'm trying to get a formula that will enable me to start with a start date with time, then add a defined period h:mm to determine what the end date & time would be within business hours, but also include weekend as well (So 7 days).
    Business Hours
    Start 09:00
    End 17:00

    A2 = Start Date & Time e.g. 29/01/16 14:00
    +
    B2 = Hours e.g. 5:00
    =
    C2 = Formula to get to 30/01/16 11:00

    Can anyone help me

    Cheers

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

    Re: Start Date + Hours to produce end date & Time using Business Hours (AND include weeken

    ?? I don't understand. Do you want to count weekends or not? you're asking for both. Or do you mean that the start date could be on a weekend? Also given the example above, 14:00 plus 5:00 is 19:00. Do you want 9 AM Monday or two hours into Monday: 11 AM.

  3. #3
    Registered User
    Join Date
    01-28-2016
    Location
    England
    MS-Off Ver
    365
    Posts
    4

    Re: Start Date + Hours to produce end date & Time using Business Hours (AND include weeken

    Hi dlfak,

    Yes count weekends as well. So I could count business hours e.g. 09:00 till 17:00 Monday > Sunday.

    But its okay now as I managed to work out a formula

    Cheers

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Start Date + Hours to produce end date & Time using Business Hours (AND include weeken

    Glad to see you got it working - I had a 90% solution for you, but was still working on the last 10%...

    For the benefit of other members, would you mind posting the formula you came up with? Thank you.

    ps Welcome to the forum
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  5. #5
    Spammer
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    190

    Re: Start Date + Hours to produce end date & Time using Business Hours (AND include weeken

    look to my example
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-28-2016
    Location
    England
    MS-Off Ver
    365
    Posts
    4

    Re: Start Date + Hours to produce end date & Time using Business Hours (AND include weeken

    Hi Aardigspook,

    I just did some further testing and it was only a part solution Ah well!

    I currently have..
    H3 = Start Time (09:00)
    I3 = End Time (17:30

    K5 = Date & Time e.g. (29/01/16 16:30)
    L5 = Duration (2:00)

    Formula
    =IF(MOD(K5+L5,1)>$I$3,INT((K5+L5)+1)+(MOD((K5+L5),1)-$I$3+$H$3),(K5+L5))

    Returns 30/01/16 10:00

    However, if I go beyond 10 hours for duration it trips up so if as above I have the duration as 10:00 it returns 30/01/16 02:00 rather than 31/01/16 09:30

    it obviously is the way I'm using the mods so I can't sum the number of days to add up. Will have to keep thinking.

    Cheers

  7. #7
    Registered User
    Join Date
    01-28-2016
    Location
    England
    MS-Off Ver
    365
    Posts
    4

    Re: Start Date + Hours to produce end date & Time using Business Hours (AND include weeken

    Thank you Jean.P28,

    I had a look and (alot cleaner than my original attempt ) but I still have the same issue..

    Thank you again for trying to help

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Start Date + Hours to produce end date & Time using Business Hours (AND include weeken

    Quote Originally Posted by Jean.P28 View Post
    look to my example
    https://www.excelforum.com/showthread.php?t=1040120----------
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Start Date + Hours to produce end date & Time using Business Hours (AND include weeken

    Try this:

    Please Login or Register  to view this content.
    Quang PT

+ 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] Calculating Target Date/Time Based on Start date and hours - Excel 2007
    By chinraj in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-09-2019, 01:43 AM
  2. Replies: 10
    Last Post: 07-10-2015, 10:40 AM
  3. [SOLVED] Adding hours to start time - Business hours/holidays/weekends
    By Thunderer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2014, 01:09 PM
  4. Replies: 0
    Last Post: 04-07-2011, 01:46 AM
  5. Replies: 6
    Last Post: 03-25-2010, 07:50 AM
  6. time/date tracking only during business hours
    By mmarff in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-04-2009, 06:58 PM
  7. Replies: 0
    Last Post: 05-09-2006, 07:50 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