Apache OpenOffice (AOO) Bugzilla – Issue 13913
Formula imported from Excel doesn't calculate correctly
Last modified: 2003-09-08 16:55:29 UTC
The Excel spreadsheet uses "Mid" and "find" functions to parse a time string: "0d 6h 3m 38s". The string is parsed into days, hours, minutes, and seconds and then totalled in seconds. The formula to parse hours is =MID(B2;FIND("h";B2;1)-2;2); minutes is =MID(B2;FIND("m";B2;1)-2;2); and seconds is =MID(B2;FIND("s";B2;1)-2;2). (All days are 0 so there is no formula to parse days.) These formulas calculate correctly when imported into Calc. The formula for the total is =(C3*3600)+(D3*60)+E3. Calc calculates this last incorrectly as 0 (zero).
Created attachment 5943 [details] Excel spreadsheet calculates incorrectly in OOo Calc
Hi Marsha, this is not a bug ! Calc doesn't calculate with text values. The result of the mid function has to be translated from text to number first. Also the priorisation was much to high. Prio 1 means the whole application is not running and this is not the case. Best regards Frank
closed invalid