[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 724
  • Last Modified:

Hide zero value rows on a pivot table

Hi,

I have data in a pivot from Columns C-M - if all values are zero, can that row be hidden?

Can I do that within the PT or using VBA?

Thanks
0
Seamus2626
Asked:
Seamus2626
  • 2
1 Solution
 
Phillip BurtonDirector, Practice Manager and Computing ConsultantCommented:
You can do it as a filter. Put the value field in the Filter section (as well as the Values field), and then:

1. Click on the arrow.
2. Select "Select Multiple Items".
3. De-select 0 and blank.

That's one way - it's dangerous, as it would also exclude any new values that are not already there...
0
 
Phillip BurtonDirector, Practice Manager and Computing ConsultantCommented:
A better way would be to create a new column in your source data saying "Is Zero Value", and have a simple formula

=if(or(g3="",g3=0),"Yes","No")

where g3 is the value for a particular row.

Then refresh (and if necessary, enlarge the source of) the PivotTable, add "Is Zero Value" into the Filters section, and select "No".
0
 
Rory ArchibaldCommented:
Are columns C:M separate fields, or separate items in the same field?
0
 
Seamus2626Author Commented:
Thanks!
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now