You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2017/02/10 23:36:42 UTC
[Bug 60724] New: SUBTOTAL() function doesn't skip auto-filtered rows
https://bz.apache.org/bugzilla/show_bug.cgi?id=60724
Bug ID: 60724
Summary: SUBTOTAL() function doesn't skip auto-filtered rows
Product: POI
Version: 3.16-dev
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: SS Common
Assignee: dev@poi.apache.org
Reporter: gwoolsey@apache.org
Target Milestone: ---
Per the Excel documentation:
https://support.office.com/en-us/article/SUBTOTAL-function-7b027003-f060-4ade-9040-e478765b9939
In the "Remarks" section, both the all rows and "ignore hidden rows" versions
of the totals functions should ignore all rows hidden by an auto-filter. POI
isn't doing that yet.
I see this empirically, with the additional behavior that if you manually hide
a row that passes an auto-filter, it is also ignored by BOTH versions of the
formula methods.
I don't even know where to start looking to figure out if a row is hidden or
not in the formula evaluation flow. It will require investigating whether there
are TwoDEvals in the operands we can use or if the Ptg array has anything we
can use to look back at the row properties for a cell value, or if this needs
to be handled at a higher level somewhere.
One of the sheets in a new test workbook I'm building for conditional
formatting has this case as well, discovered by accident. Once I check that
in, I'll point to it here as a test case that can be used to verify a fix.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60724] SUBTOTAL() function doesn't skip auto-filtered rows
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60724
--- Comment #2 from Greg Woolsey <gw...@apache.org> ---
r1855789 implemented the corresponding 'ignore hidden rows' versions of
existing variations. Still does not check for table filter applicability.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60724] SUBTOTAL() function doesn't skip auto-filtered rows
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60724
Guillermo Alvarez <al...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alvarezg@gmail.com
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 60724] SUBTOTAL() function doesn't skip auto-filtered rows
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60724
--- Comment #1 from Greg Woolsey <gw...@apache.org> ---
It appears there is no direct link in the persisted XML between a row marked
hidden and a table AutoFilter. This matches the observed Excel behavior, where
manually hiding a row that passes filter still gets its value skipped by both
versions of the function.
That actually makes the POI code simpler, as we don't have to evaluate filters,
just know if a table has one applied or not when checking the hidden attribute
of included rows.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org