[Libreoffice-bugs] [Bug 118876] SUMIF using cell above criteria match. Excel works.
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Jul 22 13:22:12 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=118876
Mike Kaganski <mikekaganski at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |NOTABUG
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Mike Kaganski <mikekaganski at hotmail.com> ---
In E21, the formula (=SUMIF(B8:B16;C21;OFFSET(B7;0;MATCH(D21;C7:I7;0);9;1)))
adds values from a columnar reference:
> OFFSET(B7;0;MATCH(D21;C7:I7;0);9;1)
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180722/41bc98eb/attachment.html>
More information about the Libreoffice-bugs
mailing list