Solved

Hide zero value rows on a pivot table

Posted on 2014-12-10
4
183 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

790 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