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 417305 - sumif function does not seem to work properly
sumif function does not seem to work properly
Status: RESOLVED DUPLICATE of bug 523250
Product: Gnumeric
Classification: Applications
Component: import/export MS Excel (tm)
1.6.x
Other All
: Normal minor
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2007-03-12 00:46 UTC by Mirza Borogovac
Modified: 2008-03-27 23:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This atachment demonstrates the problem (1.81 KB, application/x-gnumeric)
2008-03-26 23:42 UTC, Mirza Borogovac
Details

Description Mirza Borogovac 2007-03-12 00:46:57 UTC
Please describe the problem:
on the first sheet there  is table data in the following format:

  a      b      c          d
Date1  Date2  Value  date1&date2

On the third sheet I have a sumif function

Sumif(sheet1!d:d,dateA&dateB,Sheet1!c:c)

The function returns 0, when I know it should not be 0. I tried changing formulas in various ways such as

Sumif(sheet1!d:d,"="&dateA&dateB,Sheet1!c:c)

and it did not make any difference

Steps to reproduce:
1. see  the example above
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
i had to use vlookup
Comment 1 Morten Welinder 2007-03-12 01:14:14 UTC
It would be helpful if you could create a test file and tell us what
result you expect in what cell.
Comment 2 Morten Welinder 2008-01-26 23:20:51 UTC
Closing due to lack of info.  Feel free to reopen if more arrives.
Comment 3 Mirza Borogovac 2008-03-26 23:42:28 UTC
Created attachment 108092 [details]
This atachment demonstrates the problem
Comment 4 Morten Welinder 2008-03-26 23:58:33 UTC
I get 5 with a current, but unreleased, Gnumeric.  (See bug 523250, though.)
What do you get and what version are you using now?
Comment 5 Andreas J. Guelzow 2008-03-27 00:40:46 UTC
In 1.8.0 it yields 0
Comment 6 Mirza Borogovac 2008-03-27 02:11:01 UTC
I have version 1.6.3. I get 0 as well. 
Comment 7 Morten Welinder 2008-03-27 16:57:11 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.

This is the same interpretation issue as bug 523250.  Note, however that
what you do is very, very fragile.  You take two numbers, say "19" and "1",
and put them right after each other and get "191".  Don't be surprised that
if you search for "1" and "91" you will get a match.

The fix will be in 1.8.3


*** This bug has been marked as a duplicate of 523250 ***
Comment 8 Mirza Borogovac 2008-03-27 23:51:53 UTC
Thank you all