+ Reply to Thread
Results 1 to 3 of 3

Changing time hh:mm:ss field

  1. #1
    Forum Contributor
    Join Date
    10-04-2007
    Posts
    118

    Changing time hh:mm:ss field

    I’m currently working on time (hh:mm:ss) field.

    I currently have 3 fields: -

    Time Out (populated)
    Time In (populated)
    Total Time (empty)

    The Total Time field is worked out by Time Out less (minus) Time In.

    =SUM(AZ2-AW2)

    I’ve noticed that when the time goes over the 24hr (12pm) I get an error, so I use the following

    =SUM(AZ2-AW2)+1

    What I need is to show it in hours – i.e. “04:15:00” should be shown as 4.25 hours

    Is this possible? And how?

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi,
    when total time is larger than 24 hr
    right click the cell
    select format
    select number tab
    select custom and select format [h]:mm:ss

    To change to 04:15:00 to decimal value, multiply by 24 and format the result as number
    Cheers
    Last edited by arthurbr; 07-08-2008 at 06:47 AM.

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

    Try this

    =(MOD(AZ2-AW2,1)-INT(MOD(AZ2-AW2,1)))*24 format to number
    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

+ 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