+ Reply to Thread
Results 1 to 7 of 7

Dates and Time

  1. #1
    Registered User
    Join Date
    09-14-2006
    Posts
    4

    Dates and Time

    Hi,

    I'm trying to figure out how to calculate hours between dates.

    IE: Start Date : 9/1/2006 1:15PM
    End Date : 9/10/2006 12:45 AM

    I'd like to know how many hours are in that time frame. Can anyone help me??

  2. #2
    Forum Contributor
    Join Date
    03-15-2005
    Location
    North Carolina
    MS-Off Ver
    2003 & 2007
    Posts
    180
    Try this. Say

    A1 = Start Date
    A2 = End Date

    =(A2-A1)*24

    HTH
    jtp

  3. #3
    Registered User
    Join Date
    09-14-2006
    Posts
    4
    That didn't work. All I get is ####. It stats that #### is displayed when the answer is a negitive date/time.
    Last edited by tready29483; 09-15-2006 at 10:13 AM.

  4. #4
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    The answer for the above post should be formated as a number, dates are numbers, 1 being a whole day so subtracting one from the other and x by 24 will give you the hours

    as would a2-a1 formmated as [h] but this would be full hours. However you can not have a negative time or date, which is causing your error. Is the start after the finish?

    Regards

    Dav

  5. #5
    Registered User
    Join Date
    09-14-2006
    Posts
    4
    The start date is 9/1/2006 1:15 AM and the end date is 9/10/2006 12:45 PM. I need to be able to calculate the number of hours between those two times.

  6. #6
    Registered User
    Join Date
    09-14-2006
    Posts
    4
    I'm guessing no one can help me with this?? If not, please let me know.

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by tready29483
    The start date is 9/1/2006 1:15 AM and the end date is 9/10/2006 12:45 PM. I need to be able to calculate the number of hours between those two times.
    Hi tready29483,

    Formula is with start in A1 and end in B1

    =B1-A1 formatted to [hh]:ss

    oldchippy

+ 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