+ Reply to Thread
Results 1 to 4 of 4

formula to get the HOURS from 2 dates with time

  1. #1
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    formula to get the HOURS from 2 dates with time

    Hi guys,

    Anyone here know how to get the Hours of two different time

    A1
    27/06/2014 11:30

    B1
    30/06/2014 18:14

    C1

    Ans: Hours of these 2 dates with time.

    i just need to get their HOurs.


    thanks alot

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: formula to get the HOURS from 2 dates with time

    Hi albert,

    I think the Hour() function will return the hour, even it there is a date included in the number.

    See http://www.excelfunctions.net/Excel-Hour-Function.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    06-23-2014
    Location
    Dubbo, Australia
    MS-Off Ver
    EXCEL 2019
    Posts
    180

    Re: formula to get the HOURS from 2 dates with time

    Hi Albert28,

    If you are looking for the hours elapsed between those two dates and times then the formula in C1 is =INT((B1-A1)*24) ( 78 )
    If you want to extract the 11 from 11:30 then MarvinP's answer is the way to go: cell C1 =HOUR(A1) cell D1 =HOUR(B1)

    If you require something different, try uploading a sample spreadsheet

    regards
    Pete

  4. #4
    Registered User
    Join Date
    03-14-2014
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: formula to get the HOURS from 2 dates with time

    Hi Guys,
    Have been browsing thru the threads. Many ideas to read from and much to learn. Thanks a lot for the stuff. Much appreciated.

    Kind regards to all the team.

+ 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. [SOLVED] Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours
    By noobface in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-21-2021, 03:45 AM
  2. [SOLVED] Formula to Calculate Normal Hours, Time & 1/2 & Double Time from Daily Hours per week
    By KazzICC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2014, 01:51 AM
  3. [SOLVED] Formula to work out hours between 2 dates and times.. MINUS Out Of Hours
    By chris.m in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-30-2012, 08:11 AM
  4. # of Hours between 2 dates with time
    By rizmomin in forum Excel General
    Replies: 5
    Last Post: 10-19-2008, 03:55 PM
  5. hours between two dates and time
    By hknife in forum Excel General
    Replies: 1
    Last Post: 09-08-2008, 09:51 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