+ Reply to Thread
Results 1 to 2 of 2

How do I calculate the number of days hours minutes and seconds between 2 date & time

  1. #1
    Registered User
    Join Date
    11-02-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question How do I calculate the number of days hours minutes and seconds between 2 date & time

    I am looking for a way to calculate the number of Days, Hours, minutes and Seconds between 2 dates and times:

    eg.

    A1 = 10/10/11 B1 = 15/10/11
    A2 = 1:30:00 B2 = 13:30:00

    I would also like the answer to apear in number formay:

    eg.

    A3 = 5.5 Days

    Any help with my question will be greatly appreciated.

    Thank you

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

    Re: How do I calculate the number of days hours minutes and seconds between 2 date &

    To get the answer in decimal days is a simple

    =B1+B2-A1-A2

    format result cell as number

    If you want the answer to be in days, hours, minutes and seconds try

    =INT(B1+B2-A1-A2)&" days "&TEXT(B2-A2,"h:mm:ss")
    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