Solved

MS Excel: Hiding zero rows in Pivot Tables

Posted on 2001-07-02
9
641 Views
Last Modified: 2011-12-08
I am looking for a way to hide zero rows in pivot tables. This would need to work for tables that change monthly.
0
Comment
Question by:mblanken
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 13

Expert Comment

by:cri
ID: 6244817
Is Tools|Options|View: Clear 'Zero values' an option ?
0
 
LVL 13

Expert Comment

by:cri
ID: 6244855
Remember that this option is set for each worksheet
0
 

Author Comment

by:mblanken
ID: 6244894
Unfortunately no, I need to be able to hide these rows, prederably automatically. It seems as though this could/should be an option provided by Excel.
0
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
LVL 13

Expert Comment

by:cri
ID: 6245173
Try with double clicking the applicable Pivot field header button. A dialog should pop up. Select hide item 0.

If this produces the wanted result, if should be possible to automate this with a macro. Unfortunately the expert 'antrat' is dormant and, regarding Pivot Tables, I am a beginner.

0
 
LVL 7

Accepted Solution

by:
q2eddie earned 75 total points
ID: 6245280
To, cri:

I tried that suggestion.  It appears to work only if one of the pivoting elements is a zero.  Also, I have a pivottable (customer vs time-of-day-usage) where there are no zero pivoting elements.

Hmmm....  no quick and easy option, Nuts.

Hi, mblanken.

#Questions
1. Is this to be an automated process?
2. Does the example given below have the _effect_ that you wanted?
3. How close is this result to what you had in mind?

#Try This
a. If your pivottable's upper-left corner is in cell A1, then insert a blank row before it.
b. In the now-blank cell B1, type "+B3" (without the quotes).
c. Copy this formula to all the cells in row 1 for the length of your pivottable.
d. Now click on b1 and goto Data->Filter->AutoFilter.
You should see little down-arrow buttons in almost every cell in row 1.

To limit the pivottable display to show only non-zero rows, then ...
a. Goto the "GrandTotal" cell in row 1.
b. Click the down-arrow button and select the "Custom" item.
You should see a "Custom AutoFilter" dialog appear.
c. Set the first combobox to "does not equal".
d. Type the number zero into the combobox on its right.
e. Click OK.

#Comment
I think that you want something close to this - but not this exactly.

Bye. -e2
0
 

Author Comment

by:mblanken
ID: 6245291
I'm familiar with this and that doesn't work. I've asked Mrexcel.com about this problem and he has not found an answer either. He refered me to this site.
I appreciate your efforts.
0
 
LVL 7

Expert Comment

by:q2eddie
ID: 6245340
To cri:

I went to mrexcel.com and found out what you're talking about.  Wierd, I don't have that checkbox on my "data-item" dialog in the PivotTable Wizard.  Perhaps, I'm using an earlier version then he is.

Me: Excel 97

Bye. -e2
0
 

Author Comment

by:mblanken
ID: 6245374
To e2 and cri,

e2 - Your solution appears to work as an interim fix. Still wish MS would provide an option to hide zero data in a pivot table.

Thanks to both.

mblanken
0
 

Author Comment

by:mblanken
ID: 6245386
Regarding your last comment, yes it is close and does work ok but, I still would like as an option in pivot table set-up.

Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

632 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