Solved

Hide zero value rows on a pivot table

Posted on 2014-12-10
4
165 Views
Last Modified: 2014-12-10
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
Comment
Question by:Seamus2626
  • 2
4 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40491075
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
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40491079
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
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 40491105
Are columns C:M separate fields, or separate items in the same field?
0
 

Author Closing Comment

by:Seamus2626
ID: 40491121
Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now