<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - SUMIF using cell above criteria match. Excel works."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=118876">bug 118876</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>NOTABUG
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>UNCONFIRMED
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - SUMIF using cell above criteria match. Excel works."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=118876#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - SUMIF using cell above criteria match. Excel works."
href="https://bugs.documentfoundation.org/show_bug.cgi?id=118876">bug 118876</a>
from <span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span></b>
<pre>In E21, the formula (=SUMIF(B8:B16;C21;OFFSET(B7;0;MATCH(D21;C7:I7;0);9;1)))
adds values from a columnar reference:
<span class="quote">> OFFSET(B7;0;MATCH(D21;C7:I7;0);9;1)</span >
This reference gives a 9-row 1-column range starting from column which offset
is calculated using MATCH - that's OK; and from row 7(!), since it offsets 0
rows from the reference cell C7. So, when SUMIF finds the indices of the
matching cells in its condition column (B8:B16), say, it be second and sixth
elements for "plane", it takes second and sixth elements from C7:C15. They are,
of course, not what you'd expect, because you forgot to use 1 as the second
argument to OFFSET.
Closing NOTABUG. Please feel free to reopen if you disagree; please describe
why you do that in that case.</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>