<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 works wrong if Range has different row index than SumRange"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=120179">120179</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>sumif works wrong if Range has different row index than SumRange
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.1.2.1 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (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>pavlo250@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
My purpose was to conditionally sum values from a few rows.
I have written formula (G3 cell in attached file) :
=SUMIF(B2:B10,"=2",A2:A10) - this calculates good
=SUMIF(B5:B10,"=2",A5:A10) - this also is good
but when from some reasons I had to provide different start row index in
Ranges or in SumRange then result was wrong
=SUMIF(B5:B10,"=2",A2:A10) - this fails
=SUMIF(B2:B10,"=2",A5:A10) - and this fails also
I was testing it on debian linux system with version libre office 6.0 and
latest 6.1.2
Steps to Reproduce:
1.Open attached file
2.See columns F3 and H3, should have the same values as G3 and I3 but have not.
Actual Results:
formula =SUMIF(B2:B10,"=2",A2:A10) returns different value than
=SUMIF(B5:B10,"=2",A2:A10)
Expected Results:
=SUMIF(B5:B10,"=2",A2:A10) should return 3 also.
Reproducible: Always
User Profile Reset: Yes
Additional Info:
I don't see any option to attach file with example of bug</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>