rocksolid77
New Member
- Joined
- Sep 19, 2011
- Messages
- 18
Hi Guys,
Basically I have a spread sheet that lists projects and hours worked by region with a totals row at the top... so:
..............Totals.....=Subtotal(9,...)
Project 1 - Region 1 - Platform - #
Project 1 - Region 2 - Platform - #
Project 1 - Region 3 - Platform - #
Project 1 - Global - Platform - =Subtotal(9,A3:A5)
The rows are grouped so that only "Global" is showing when collapsed. Global # is the sum (Subtotal,9) of the three cells above it.
The totals row is set up as Subtotal,9 so it avoids all the "Global" rows which will remove any duplicate values.
So far so good, Subtotals works exactly as I'd like it to, giving the same value both when all rows are expanded and all rows are collapsed. Here's where it gets messed up.
If I filter out a value in "Platform" (excel expands all groups... not sure why groups and filters get along so poorly) and then collapse the remaining cells all my subtotals go to 0. I'm not sure why since Regions 1-2-3 are not being filtered, just hidden via the group. My understanding was that Subtotal 9, excluded only cells which are auto filtered while subtotal,109 excluded auto filtered and hidden cells. Here are the functions I'm using:
Totals Row:
"Global" Rows:
Can anyone let me know why this is happening and any possible solutions? Do grouped cells count as filtered once a filter has been initiated? Any help will be much appreciated, thanks in advance.
Basically I have a spread sheet that lists projects and hours worked by region with a totals row at the top... so:
..............Totals.....=Subtotal(9,...)
Project 1 - Region 1 - Platform - #
Project 1 - Region 2 - Platform - #
Project 1 - Region 3 - Platform - #
Project 1 - Global - Platform - =Subtotal(9,A3:A5)
The rows are grouped so that only "Global" is showing when collapsed. Global # is the sum (Subtotal,9) of the three cells above it.
The totals row is set up as Subtotal,9 so it avoids all the "Global" rows which will remove any duplicate values.
So far so good, Subtotals works exactly as I'd like it to, giving the same value both when all rows are expanded and all rows are collapsed. Here's where it gets messed up.
If I filter out a value in "Platform" (excel expands all groups... not sure why groups and filters get along so poorly) and then collapse the remaining cells all my subtotals go to 0. I'm not sure why since Regions 1-2-3 are not being filtered, just hidden via the group. My understanding was that Subtotal 9, excluded only cells which are auto filtered while subtotal,109 excluded auto filtered and hidden cells. Here are the functions I'm using:
Totals Row:
Code:
=SUBTOTAL(9,A3:A3000)
Code:
=IF(SUBTOTAL(9,A3:A5)=0,"",SUBTOTAL(9,A3:A5))
Last edited: