Solved

MS Excel: Hiding zero rows in Pivot Tables

Posted on 2001-07-02
9
630 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
  • 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
 
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
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.

 
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

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

Suggested Solutions

Title # Comments Views Activity
Recursion / Iteration in Word 2013 Mail Merge 16 61
Copy Value of cell in formula 1 44
MS Access 2010 - Critical Error PtrSafe Attribute 6 51
Office 365 vs. In-House 4 80
Introduction It seems that at least a couple of times per month, I answer a question that requires automating Outlook from another Microsoft Office application, usually (although not always) to send one or more email messages.  For example: …
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

920 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