+ Reply to Thread
Results 1 to 3 of 3

Calculating Time Difference in Seconds Between Two Times/Dates

  1. #1
    Registered User
    Join Date
    03-31-2016
    Location
    New Jersey,USA
    MS-Off Ver
    2007 or 365
    Posts
    1

    Calculating Time Difference in Seconds Between Two Times/Dates

    Hello,

    Trying to calculate the time duration difference between two dates/times with military time and ideally in this format.

    Start Day End Day Start Time End Time Time Difference In Seconds
    2016-03-31 2016-04-01 23:00:00 01:00:00 7200

    Any ideas? I was considering absolute value functions and a variety of things but nothing seems to work right. I would greatly appreciate it!

    Justin

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,918

    Re: Calculating Time Difference in Seconds Between Two Times/Dates

    =((EndDate+Endtime)-(StartDate+StartTime))*86400

    60 sec/min * 60 min/hr * 24 hr/day =86400 sec/day
    Last edited by protonLeah; 03-31-2016 at 11:49 PM.
    Ben Van Johnson

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Calculating Time Difference in Seconds Between Two Times/Dates

    Hi, welcome to the forum

    Agree with Ben...
    A
    B
    C
    D
    E
    19
    D Start D End T Start T End Diff
    20
    3/31/2016
    4/1/2016
    23:00:00
    1:00:00
    7200

    E20=((B20+D20)-(A20+C20))*86400
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 2
    Last Post: 06-11-2015, 04:01 AM
  2. Calculating time spent between seperate dates/times
    By JoshuaJared in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-17-2014, 12:19 PM
  3. [SOLVED] [Question] Calculating time difference of different/same dates
    By MyOnion in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-15-2013, 03:15 AM
  4. Difference in dates time and convert it to seconds
    By Excel_investor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-11-2012, 01:11 AM
  5. Replies: 3
    Last Post: 03-09-2012, 08:19 AM
  6. Calculating time difference between two dates
    By st_judeu@yahoo.com in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-16-2010, 03:08 AM
  7. [SOLVED] HOURS DIFFERENCE IN TIME BETWEEN DIFFERENT DATES AND TIMES
    By tankerman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-13-2005, 12:05 PM

Tags for this Thread

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