Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Calc fails to calculate simple formula | ||||||
---|---|---|---|---|---|---|---|
Product: | Calc | Reporter: | testerh <iq_ltd> | ||||
Component: | code | Assignee: | spreadsheet <spreadsheet> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | issues@sc <issues> | ||||
Severity: | Trivial | ||||||
Priority: | P3 | CC: | issues, rb.henschel | ||||
Version: | OOo 3.0 Beta 2 | Keywords: | oooqa | ||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Description
testerh
2008-07-26 06:24:15 UTC
If you want a number, you must write it as number. "0.2" is a text and texts are treated as zero if you try to calculate with them. Correct: =IF(D1="HUF";0.20;0.00) Closing. Error in using formula Created attachment 55377 [details]
Testcase for wrong formula evaluation
Clarification: I initially used Calc to open an MS Office 2000 Excel spreadsheet that had the formulas decribed above. The formula worked fine in Excel. I noticed the problem (calculated field wrong), created a new Calc spreadsheet, and copied over the formula from the Excel spreadsheet to verify the behavior. Please check the test case I just attached. Language for the cells is Hungarian, but that shouldn't affect the behavior. Importing from Excel is a problem, see issue 5658. You will have to correct your spreadsheet, to use numbers where you will calculate with them. *** This issue has been marked as a duplicate of 5658 *** closing duplicate. You might vote for issue 5658 to get a better solution for importing Excel spreadsheets. closed as duplicate |