Apache OpenOffice (AOO) Bugzilla – Issue 6233
Ignored calculations - somewhat serious defect
Last modified: 2003-09-08 16:55:29 UTC
Calculations are sometimes silently ignored. Try this: Cell A2: 07:00 Cell B2: 16:20 Cell C2: =IF((B2-A2)>TIME(8;44;0);"0:45";IF((B2-A2)>TIME(6;29;0);"0:30";IF((B2- A2)>TIME(4;14;0);"0:15";"0:00"))) Cell D2: =B2-A2-C2 That's it. Result incorrectly shows 09:20 when it should be 08:35 (correct in excel).
Hi Hundri Magusin, this is not a bug ! Calc doesn't calculate with text values. Your IF Statements set the time values as Text ("0:45"). If you set these values without quotationmarks, you will get numbers as the function result and the correct value in D2. So I have to close it but set it as duplicate to Issue 5658 which deals with the same case. Best regards Frank *** This issue has been marked as a duplicate of 5658 ***
duplicate