<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - SUMIF with 1 conditional on a y/n match yields 0 in LibreOffice yet sums correctly in Google Sheet with same data"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=131081">131081</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>SUMIF with 1 conditional on a y/n match yields 0 in LibreOffice yet sums correctly in Google Sheet with same data
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.3.3.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ann@href.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
Numeric values in column D. Some of these number are deductible expenses.
Column A has a flag to say which ones are deductible. This flag is a "y"
(single char) when deductible else blank. Many lines are "y" and a few are
blank.
The answer 0 is definitely wrong for my data.
This is the formula:
=SUMIFS(D2:D61, A2:A61, "=1")
Note that I imported this data from a CSV file. It is possible that some
encoding problem has resulted in a situation where LibreOffice cannot see
numbers as numbers. Visually, I cannot see a problem.
Steps to Reproduce:
Here is some sample data, use the formula above.
Entry Date Desc Amt
y 11/14/2019 abc 25
11/14/2019 def 10
Expected Results:
25
Reproducible: Always
User Profile Reset: No
Additional Info:
The hint-help and online help for SUMIFS is particularly confusing. There are
too many different opinions about the required parameters.
I sanity checked my data and formula using Google Sheets. I pasted the data in
and did the total using their syntax, and got a non-zero answer. Therefore I
do think my data is clean and this is a core bug on a much needed feature.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>