Apache OpenOffice (AOO) Bugzilla – Issue 78226
Incorrect function results with time at 24:00:00 hours
Last modified: 2007-08-07 14:35:00 UTC
When i use different functions to roken with time, seconds etc. i get incorrect results, if some time is over 24 hours. For example: Type in 11:59 an 11:59 in two cells and let is sum. And then let give you the hour out of it =HOUR(A3) (in german: =STUNDE(A3) -> It's correct. Type in 12:01 an 11:59 -> 24:00:00 -> you get 0 as hour Type in 14:30 an 11:59 -> 26:29:00 -> you get 2 as hour Cals sets every 24 hours at 0. This is extremly bad, if you have to roken with it. I want to sum my training hours. Some time i have more than 24. For example 32:24:47. I can sum this up correct, but i can't do further functions. For example hour(). I have tried to roken the percent out of it, but therefore i get wrong results when i come over 24 hours. I get 400% and so on... Sorry, i can't describe it better in english. For further questions i try to explain it better. Please contact me. I have had this problems more times, because i try to make a big spreadsheed for the whole year and i make more functions with time. the others i was able to resolve by format the cell, but i would have need other formats. I just take what makes correct results. Tahnk you!
Created attachment 45752 [details] Example for the Problem
Hi, ltchp! OOo should keep full compatibility with Excel here. function HOUR(A3) is returning values from 0 to 23. You can resolve your problem by using =ROUNDDOWN(DAYS(A3;0)*24;0) or =INT(A3*24)
This looks like dup of http://www.openoffice.org/issues/show_bug.cgi?id=26417. ltchp, please comment.
Yes, a double to Issue 26417 and closed as such. Frank *** This issue has been marked as a duplicate of 26417 ***
closed double