+ Reply to Thread
Results 1 to 5 of 5

Time entry

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    9

    Time entry

    Hi

    I want to display a time in HH:MM

    I have Time(8,0,0) which returns 08:00

    If i have TIME(72,0,0) it returns 00:00:00. I guess it is because I've gone over 24 hours i.e. one day. So how do I alter TIME(72,0,0) to return DD:hh:mm, can I have both formats in the same column?

    Cheers

    Jon

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Time entry

    With your current cell format use this forumla instead

    =DATE(1900,1,INT(72/24))+TIME(MOD(72,24),0,0)

    Change highlighted value as per requirement
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Time entry

    Format the cell.
    custom
    [h]:mm

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Time entry

    Format the cell.
    custom
    [h]:mm

  5. #5
    Registered User
    Join Date
    03-15-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Time entry

    Thanks Ace

    It still returns 00:00

    my whole formula is

    =IF(B3="Fault - P1",TIME(8,0,0),IF(B3="Fault - P2",TIME(23,59,59),IF(B3="Fault - P3",DATE(1900,1,INT(72/24))+TIME(MOD(72,24),0,0),"")))

    so Fault - P1 returns 08:00
    Fault - P2 returns 23:59

    Fault - P3 returns 00:00 when I would like 72:00 (HH:MM) or 03:00:00 (DD:HH:MM) or whatever works.

    Cheers

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Time entry

    Format cell as

    dd:hh:mm
    or
    [hh]:mm

+ 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