Issue 108991

Summary: COUNTIF gives inconsistent counts of empty arrays
Product: Calc Reporter: foobaric <foobaric>
Component: programmingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: elish, issues
Version: OOO320m12Keywords: regression
Target Milestone: ---   
Hardware: Unknown   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Example sheet for issue 108991. The two COUNTIF functions giving inconsistent results are marked in red.
none
4.0 (top) vs. 2.4.3 (bottom) none

Description foobaric 2010-02-05 16:48:42 UTC
COUNTIF should count empty cells belonging to an array both as zero (0) and as
empty string (""). Therefore COUNTIF(<array>;0) and COUNTIF(<array>;"") should
yield the same results if the cells of <array> are empty (e.g. <array> {={||}}).
However, the upper left cell of the array is not counted as zero but is counted
as empty string, thus the results of both functions differ by one.

This problem was already observed before (see Issue 83917, last comment), but
not fixed at that time point. I initially encountered it in OOO310m19 but it is
still present in OOO320m12.
Comment 1 foobaric 2010-02-05 16:52:07 UTC
Created attachment 67658 [details]
Example sheet for issue 108991. The two COUNTIF functions giving inconsistent results are marked in red.
Comment 2 Edwin Sharp 2013-08-16 14:28:54 UTC
Created attachment 81343 [details]
4.0 (top) vs. 2.4.3 (bottom)
Comment 3 Edwin Sharp 2013-08-16 14:30:21 UTC
See attachment 81343 [details].

Rev. 1513819 Win 7