+ Reply to Thread
Results 1 to 4 of 4

Total working hours between two dates

  1. #1
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Total working hours between two dates

    Morning all,

    I've been racking my brain for ages on this but not really getting anywhere.

    Can anyone please help?

    I'm looking to calculate the total time ([HH]:MM) between two dates but only considering working hours which are tabled in the sheet.

    The yellow column is my manual calculation.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Total working hours between two dates

    Sorry revised file attached, one mistake, and now included my formula
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,208

    Re: Total working hours between two dates

    Try

    =(NETWORKDAYS.INTL(A2,B2,11,M$1:M$3)-1)*("17:00"-"9:00")+IF(NETWORKDAYS.INTL(B2,B2,11,M$1:M$3),MEDIAN(MOD(B2,1),"09:00","17:00"),"17:00")-MEDIAN(NETWORKDAYS.INTL(A2,A2,11,M$1:M$3)*MOD(A2,1),"09:00","17:00")-(NETWORKDAYS.INTL(A2,B2,"1111101")/24)

  4. #4
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Total working hours between two dates

    Thanks John I can use this now

+ 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. Formula to work out total working hours between two dates
    By Lazyemployee123 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-27-2015, 07:40 AM
  2. [SOLVED] Calculating working hours between two dates and business hours
    By mangesh in forum Excel General
    Replies: 3
    Last Post: 06-08-2015, 03:02 AM
  3. 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
  4. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  5. how to get total working hours
    By ALME in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-18-2013, 01:51 AM
  6. [SOLVED] get total hours from 2 dates
    By Biff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  7. get total hours from 2 dates
    By LU in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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