Consulting

Results 1 to 9 of 9

Thread: Excel Negative Time Format

  1. #1
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location

    Excel Negative Time Format

    I have one interesting question about Excel negative time format.

    When I input these keys:

    Spacebar
    :
    Spacebar 'Edit: No need
    Enter

    Excel cell displays ######### (-0.0416666666666667)

    Anyone knows why these four keys caused such result?

    Thanks in advance
    Emily

    ps -1/24 will display -0.0416666666666667

    Cross post: http://www.mrexcel.com/forum/showthr...14#post1785914
    Last edited by Emily; 12-26-2008 at 05:14 AM.

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    Interesting..... How did you come by this sequence?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  3. #3
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location
    Read from China Excel forum

  4. #4
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    Good thing you edited the thread to show the cross posting.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  5. #5
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location
    Elaborate more:

    when input
    Spacebar + : + 1 shows 00:59
    Spacebar + : + 2 shows 01:59
    ...
    Spacebar + : + 24 shows 23:59
    Spacebar + : + 25 shows 01/01/1900 12:59:00 AM
    ...
    Spacebar + : + 9999 shows 19/02/1901 02:59:00 PM

    9999 is the maximum value that can display time format, and also

    Spacebar + : + 0 shows -0.000694444444444444

  6. #6
    Hmmmm, I don't get anything but what I type, as expected.

    Could it have something to do with the fact that Ctrl + : produces the date?? Or that Ctrl + Shift + : produces the time of day??

  7. #7
    VBAX Mentor
    Joined
    Dec 2008
    Posts
    404
    Location
    I talked about this problem on polish forum .

    See, what Jonh Walkenbach says about this.

    Is said in Poland: "There is as in czech movie - nobody nothing knows"

    Artik

  8. #8
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location
    thanks,
    it's hard to understand the translation

    you mean this

    I don't have an answer, but here's another weird one. Try appending am or pm
    to those examples.

    Enter " :0 am" (no quotes) and you get 2982616.16248843.

    I googled for the integer portion of that number, and found this:

    http://www.flickr.com/photos/erikeckel/2608146822/

    2,982,616 days is pretty close to 4,294,967,295 minutes -- which is
    (2^32)-1.

    Someone who understands how time values are stored internally could probably
    explain this. Or maybe not.

    -John
    John article : http://office.microsoft.com/en-us/ex...874951033.aspx

    Still not understand Excel, anyway just for interest. Thanks

  9. #9
    VBAX Regular n8Mills's Avatar
    Joined
    Sep 2006
    Location
    Washington State
    Posts
    54
    Location
    Dare I ask... what's the point?!?!
    I'm trying to suck seed in life, but the suck cess evades me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •