Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Array Formula; Max/Min Conditional Calculation Error | ||||||
---|---|---|---|---|---|---|---|
Product: | Calc | Reporter: | mikegsmith <mike> | ||||
Component: | code | Assignee: | AOO issues mailing list <issues> | ||||
Status: | CONFIRMED --- | QA Contact: | |||||
Severity: | Trivial | ||||||
Priority: | P3 | CC: | issues, rb.henschel | ||||
Version: | OOo 2.4.1 | Keywords: | oooqa | ||||
Target Milestone: | --- | ||||||
Hardware: | Unknown | ||||||
OS: | All | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Description
mikegsmith
2009-05-16 21:57:41 UTC
Created attachment 62316 [details]
Arrays - Max/Min Conditional Calculation Error
In MIN you use IF(MONTH(B$10:B$19)=5;C$10:C$19;0) which sets the result to 0, if MONTH() unequal 5. Therefore the minimum is 0. In SMALL you use IF(MONTH($B$10:$B$19)=5;C$10:C$19) which is a form with only two parameters. It sets the result to the default FALSE, if MONTH() unequal 5. Therefore the smallest is 28. =MIN(IF(MONTH($B$10:$B$19)=5;C$10:C$19)) will work as =SMALL(IF(MONTH($B$10:$B$19)=5;C$10:C$19);1) But the question is, why FALSE is not evaluated as 0 in array context. I set this issue to new, so that Eike can look, whether this is conform to ODF spec. |