+ Reply to Thread
Results 1 to 4 of 4

Calculate total Hours between 2 date and time

  1. #1
    Registered User
    Join Date
    05-08-2006
    Posts
    3

    Calculate total Hours between 2 date and time

    Hi, Can anyone help me on how i can calculate total hours between 2 date and time. eg. Field A1 i have 12/25/2005 17:35 A2 i have 12/28/2005 17:00
    and result will be in field A3
    Pls help. Thanks

  2. #2
    Pete_UK
    Guest

    Re: Calculate total Hours between 2 date and time

    Just subtract one from the other and format the cell as [h]:mm:ss, i.e.
    enter this formula in cell A3:

    =A2-A1

    Hope this helps.

    Pete


  3. #3
    Registered User
    Join Date
    05-08-2006
    Posts
    4
    Good one Pete.

    You may also use this (A2-A1)*24 to get a more exact hour (with decimal). This one doesn't require you to change the format of the cell


    MF

  4. #4
    Registered User
    Join Date
    05-08-2006
    Posts
    3
    Thanks. Have another question how can i code the fields with mm/dd/yyyy hh:mm. so that when i key in i just key in numbers don have to worried about the the slashes and colon. Thanks again

+ 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