+ Reply to Thread
Results 1 to 5 of 5

How to count Working hours b/w two date and time including Saturday

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    Hyderbad
    MS-Off Ver
    Excel 2013
    Posts
    8

    How to count Working hours b/w two date and time including Saturday

    Hello to all

    i want to calculating working hours in b/w two dates and times.
    my Start date(A2) 03-feb-2014 4.00 PM --'Monday
    my end date(b2) 08-feb-2014 1.00 PM --'Saturday

    my office timeings is monday to friday - 9.00 Am to 6.00 Pm, and saturday 9.00 Am to 1.00 PM only

    when am useing networking days funtcion for the above,am getting result excecpt saturday, for this agin am usinig networkday+weekday
    this is working fine for me, but am not able to counting hours in
    here is my formula
    =(8*(NETWORKDAYS(A2,B2))+4*(INT((WEEKDAY($A2-7)-$A2+$B2)/7)))-24*(MOD(B2,1)-MOD(A2,1))
    for this am getting 43 hours instead of 38 hours

    because my work started in feb-03 time of 4-pm, i want calculate only 2 hours for the Monday.
    how to capture time time and calculate?
    note: if time greater than 6Pm , work hours will calculate for the next day.

    thanks for advance

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: How to count Working hours b/w two date and time including Saturday

    Hi,

    a first attempt


    =(NETWORKDAYS(A2,B2)-1)*8/24+NETWORKDAYS.INTL(A2,B2,"1111101")*4/24+(18/24-MOD(A2,1))

    Hope it helps
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: How to count Working hours b/w two date and time including Saturday

    Pl see attached file with formula.
    Attached Files Attached Files

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

    Re: How to count Working hours b/w two date and time including Saturday

    If the working day is 09:00 until 18:00 that's 9 hours....but you are counting 8 for each working day, are you accounting for a lunch break?

    If you want to consider lunch breaks for partial days then I think you need to define lunch break times too, e.g. 13:00 until 14:00, otherwise if your period starts at 13:00 how do I know if that is after lunch or before, total hours will be different depending on which it is.
    Audere est facere

  5. #5
    Registered User
    Join Date
    01-07-2014
    Location
    Hyderbad
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: How to count Working hours b/w two date and time including Saturday

    Quote Originally Posted by daddylonglegs View Post
    If the working day is 09:00 until 18:00 that's 9 hours....but you are counting 8 for each working day, are you accounting for a lunch break?

    If you want to consider lunch breaks for partial days then I think you need to define lunch break times too, e.g. 13:00 until 14:00, otherwise if your period starts at 13:00 how do I know if that is after lunch or before, total hours will be different depending on which it is.
    my lunchtime is 1.00PM to 2.00 PM.
    yes what u said is correct, that's why i remove the "8" for couning.
    but am not getting expected result, due to round function am not getting time format when dates are different and differ time's.

+ 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. Replies: 0
    Last Post: 11-13-2013, 10:29 AM
  2. Conditional time calculation including Saturday in excel 2007
    By sahil_123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2013, 03:58 AM
  3. VBA to calculate hours between 2 date/time excluding saturday & sunday
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-12-2013, 10:12 AM
  4. Working Hours between 2 dates (including Saturdays with Diff hours)
    By ejou11 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2013, 07:39 AM
  5. calculating the number of working hours including saturday
    By drma in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2010, 12:58 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