After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 123325 - Excel incompatibility: COUNTIF conditionals
Excel incompatibility: COUNTIF conditionals
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export MS Excel (tm)
1.2.x
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2003-09-26 17:35 UTC by Luke Hutchison
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luke Hutchison 2003-09-26 17:35:23 UTC
COUNTIF(range,"<>0") doesn't count cells with formulae in that return "",
in Gnumeric (i.e. "" is treated as 0), but does count them (i.e. "" is not
treated as 0) in Excel.  (I imagine SUMIF etc. have the same problem.) 
This just broke compatibility on a sheet that I created.
Comment 1 Jody Goldberg 2003-10-06 05:55:46 UTC
@#%$#$ dick heads

XL is inconsistent.

If the entire range is empty and outside the region known to have content it is
ignored.

Hence countif (D1:D5,"<>1") == 0 if there is nothing beyond column C
and == 5 if there is any value <>1 in D1:D5

I've patched it, but will need to test things more before committing.
Comment 2 Luke Hutchison 2003-10-06 06:51:20 UTC
I think it's more complicated than that.  I was counting a region with
formulae returning "" or a number, depending on some condition.  It
was definitely inside the defined region.  I'm reopening so you notice
this corner-case.
Comment 3 Jody Goldberg 2003-10-06 13:59:49 UTC
understood.  My comment was that gnumeric's approach of ignoring
empties was consistent where as the XL approach of sometimes counting
empties for '<>' was not.  I've patched things so that we mostly match
their semantics now, although it is possible to get different results
depending on how tight the definition of the active region is.