+ Reply to Thread
Results 1 to 4 of 4

Adding 24 working hours

  1. #1
    Registered User
    Join Date
    03-27-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Talking Adding 24 working hours

    Hi Guys!

    I need assistance in adding 24 working hours.


    Example:

    A1:
    Start date: 16/07/2012 12:12


    I need to add 24 working hours, working hours = 08:00 - 18:00. I dont want to include weekends.

    Can you help?

    I have this, which i've tried playing around with, to calculate the working hours when i know the resolution date, however i cant get it to do what i want.

    =(NETWORKDAYS(A2,B2)-1)*("18:00"-"08:00")-MOD(A2,1)+MOD(B2,1)

  2. #2
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Adding 24 working hours

    Hi

    So what is in the other cells! I see you have 16/07/2012 12:12 in A1.

  3. #3
    Registered User
    Join Date
    03-27-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Adding 24 working hours

    Well, i want a forumla to add 24 working hours to that date.

    Working hours being between 8:00 & 18:00.

    Cell B2 would contain the result.

    Simply =A1+1 would add 24 hours or one day to it, but I want to add a 'working day'

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

    Re: Adding 24 working hours

    Do you mean add 24 working hours, or 1 working day? (those aren't the same as 1 working day is 10 working hours in your case). If it's 24 working hours, then assuming start time/date is always within your work hours try

    =WORKDAY(A2,2+(MOD(A2,1)>"14:00"+0))+MOD(MOD(A2,1)-"4:00","10:00")+"8:00"

    If you only want to add 1 working day then that's simply

    =WORKDAY(A2,1)+MOD(A2,1)

    ......or for a more generic approach, this will add the working hours shown in B2 (in time format like 20:00 or 36:00) to the date/time in A2

    =WORKDAY(A2,CEILING((B2+MOD(A2,1)-"8:00")/("18:00"-"8:00"),1)-1)+MOD(A2,1)+B2-CEILING(MOD(A2,1)+B2-"8:00","18:00"-"8:00")+"18:00"-"8:00"
    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