+ Reply to Thread
Results 1 to 5 of 5

How to find the duration between date & time.

  1. #1
    Registered User
    Join Date
    02-15-2016
    Location
    Dammam, KSA
    MS-Off Ver
    2013
    Posts
    3

    How to find the duration between date & time.

    How to find the duration between date & time.

    Please find below relevant details.

    Cell ref. A2 B2 C2 D2
    Start Date Start Time End Date End Time
    4/25/2015 7:00 AM 4/28/2015 9:00 PM

    How many "DAYS" between above dates?
    Extra time "HOURS"?
    Extra time "MINUTES?

    Thanks for your support.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,455

    Re: How to find the duration between date & time.

    Perhaps asked a zillion times

    Start with http://www.cpearson.com/excel/datetime.htm#NumDOWPeriod to learn about Date and Time arithmetics

  3. #3
    Registered User
    Join Date
    11-11-2015
    Location
    Southend
    MS-Off Ver
    2013
    Posts
    52

    Re: How to find the duration between date & time.

    Dates and times in excel are just numbers
    It is only the formatting of them that shows them as dates
    The integer bit of the number is the days since 1st Jan 1900
    The fraction bit is the time so .25 is 6 am and .75 is 6 pm
    to get duration just subtract one from the other, if the difference is 1.75 then duration is 1 day and 18 hours

    However I do agree with Pepe this is basic stuff, go on a course, look in the manual or read some of the forum replies

  4. #4
    Registered User
    Join Date
    07-30-2010
    Location
    Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    90

    Re: How to find the duration between date & time.

    =IF(LEN(R7),DATEDIF(R7,$C$1,"y")&" years, "&DATEDIF(R7,$C$1,"ym")&" months ","")

    Untitled.jpg

  5. #5
    Registered User
    Join Date
    02-15-2016
    Location
    Dammam, KSA
    MS-Off Ver
    2013
    Posts
    3

    Re: How to find the duration between date & time.

    Syed82

    Can you do the formula my attached file?. It will be very helpful to me.

    Irfan

+ 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: 5
    Last Post: 09-15-2015, 03:17 AM
  2. trying to find indiviuals and duration of time worked.
    By superchew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2013, 12:20 PM
  3. Replies: 0
    Last Post: 10-17-2013, 03:09 PM
  4. [SOLVED] Date and Time duration formula
    By tep1981 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2013, 03:16 AM
  5. Weeks left in a month after a certain date for a certain duration of time
    By mknapp21 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2012, 03:34 PM
  6. [SOLVED] Date/time Duration
    By zjay in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-24-2005, 06:06 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