+ Reply to Thread
Results 1 to 6 of 6

Calculating time differences

  1. #1
    Registered User
    Join Date
    04-01-2008
    Posts
    3

    Calculating time differences

    Ok, so I figured out how to calculate the difference between two times and have the results dislayed as a number. However, if 5:00pm is my number in A2 and 12:30pm is my number in A1 the formula in A3 is "=HOUR(A2-A1)" and produces the result 4.00, rather than 4.50. Does anyone know how to get it to recognize half hours?

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

    Just do

    =A2-A1 then format the cell to [hh]:mm:ss
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =(A2-A1)*24
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    04-01-2008
    Posts
    3
    Quote Originally Posted by oldchippy
    Hi,

    Just do

    =A2-A1 then format the cell to [hh]:mm:ss
    But that displays my results as a time - 04:30:00. I need the result to read 4.5

  5. #5
    Registered User
    Join Date
    04-01-2008
    Posts
    3
    Quote Originally Posted by NBVC
    Try:

    =(A2-A1)*24
    YES!!!!! NBVC, you are the man!!! or woman!!!!

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    sorry didn't read the question properly, NBVC got it!

+ 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