+ Reply to Thread
Results 1 to 2 of 2

Calculating total time between different days

  1. #1
    Registered User
    Join Date
    07-25-2017
    Location
    Philippines
    MS-Off Ver
    MS Office 2013
    Posts
    5

    Calculating total time between different days

    Hi! I need help on this one:

    example:

    A1 (Start time): 7/25/2017 8:00 AM
    B1 (Breaktime Start): 12:00 PM
    C1 (Breaktime End): 1:00 PM
    D1 (End time): 7/27/2017 9:00 AM

    E1 (Total time in d/ h/ m): =(D1-A1+(A1<D1)-($C$1-$B$1+($B$1<$C$1)))

    The answer on E1 should be 2 days/ 1 hr/ 0 min. My problem with this one is that it subtracts the breaktime (1hr) even though it is not applicable.


    Hope you could help!

    Thanks.

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Calculating total time between different days

    In E1:
    =D1-A1

    or maybe:
    =MAX(A1:D1)-MIN(A1:D1)

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 07-25-2017 at 12:49 AM.

+ 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. Calculating total time based on start and end time.
    By famin in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-11-2016, 09:50 AM
  2. Replies: 0
    Last Post: 10-31-2014, 10:32 AM
  3. Calculating time that is goes into days
    By Sal1tech in forum Excel General
    Replies: 1
    Last Post: 04-02-2014, 02:18 PM
  4. Calculating time elapsed in days and count days within same range
    By michellem410 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-19-2008, 01:13 PM
  5. Calculating Total Time
    By SailorGuy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2008, 05:09 AM
  6. Calculating time difference between two days capturing the overnight time.
    By Monica_La in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-08-2007, 11:22 AM
  7. [SOLVED] Calculating total time
    By David Gartrell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2006, 03:45 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