+ Reply to Thread
Results 1 to 3 of 3

Difference between two dates in hours

  1. #1
    Registered User
    Join Date
    04-04-2017
    Location
    Sydney
    MS-Off Ver
    2013
    Posts
    9

    Difference between two dates in hours

    Hi,

    How do I find the difference between two dates in the format of

    18 Aug 2016 13:05 and 10 Mar 2017?

    The trick with this is that the month is in text format..
    I want to grab the time difference in hours

    Thanks

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Difference between two dates in hours

    Are these cells just text, or are they properly formatted as date/time?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Difference between two dates in hours

    See below:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    1
    18 Aug 2016 13:05
    10 Mar 2017 00:00
    4882.917
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    C
    1
    =(B1-A1)*24
    Sheet: Sheet1

    Both date/time fields formatted as [$-en-GB]dd mmm yyyy hh:mm

+ 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. Difference between 2 dates in HOURS
    By itshere in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2015, 02:54 PM
  2. What is the difference in hours between dates?
    By StuartMansfield in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-09-2013, 05:50 AM
  3. Required difference between two dates/times in hours
    By kasi.maddula in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-26-2013, 07:14 AM
  4. Need difference between two dates/times in hours
    By ramsdesk in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-25-2013, 01:25 PM
  5. Calculate the difference in hours between two dates?
    By Jonblomberg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2011, 09:42 AM
  6. [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
  7. [SOLVED] How do I calculate difference in days & hours between two dates e.
    By probi2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2005, 12:06 PM

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