+ Reply to Thread
Results 1 to 3 of 3

weird number entry calculation

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Salzburg
    MS-Off Ver
    Excel 2010
    Posts
    1

    weird number entry calculation

    Hi there!

    I have a bunch of timedata in the format mm:ss:iii (minutes, seconds, milliseconds) strangely whenever I enter them in this format excel does some really weird calculations with that and replaces the timestamp with some strange number.
    for example:
    01:23:456
    turns to
    0,062916667
    This erases the original value (so there is no formula or something left, just the strange number).

    How can I stop this nonsense or reformat those timestamps so I can use them in calculations?

    thanks in advance!

    best regards
    stefan

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,843

    Re: weird number entry calculation

    Welcome to the Forum!

    Putting milliseconds after a colon is not standard notation. Normally you would use 01:23.456. The number you are seeing is Excel's attempt to try to makes sense out of what you entered. The number you see is how Excel internally represents time. In your example, this number represents 1:30:36 (h:mm:ss). I don't know how Excel arrived at that number, though.

    To handle this data correctly, use a 01:23.456 format for your input data and set the cell format to Custom, "mm:ss.000"
    Last edited by 6StringJazzer; 11-21-2012 at 12:04 PM. Reason: Remove hh: from format since hours are not desired in data
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: weird number entry calculation

    looks like 23:456 has been calculated as 23+456/60 -- 23+7.6 == 30.6 hrs or 30 hours 36 mins
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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