Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2005

Tip: Looking for answers? Try searching our database.

Zero Values in a Pie Chart

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DMc2005 - 29 Mar 2005 11:24 GMT
Hi

I currently have some data as shown below:

Item 1     0
Item 2     3
Item 3     6
Item 4     5
Item 5     0
Item 6     9

How can I exclude the zero items automatically, the data shown below is
going to change regulary and i do not want to have to keep change the source
data manually.

D
Toppers - 29 Mar 2005 13:33 GMT
You can use AutoFilter to hide the rows with 0s as Chart does not display
data that's hidden.

HTH

> Hi
>
[quoted text clipped - 12 lines]
>
> D
John Mansfield - 29 Mar 2005 13:43 GMT
Andy Pope shows how to do this via te use of dynamic range names here . . .

http://www.andypope.info/charts/piezeros.htm

----
Regards,
John Mansfield
http://www.pdbook.com

> Hi
>
[quoted text clipped - 12 lines]
>
> D
Peter T - 29 Mar 2005 13:43 GMT
In a pie chart no slice is shown for a zero value, so unlike other chart
types you don't really need to cater for it. Or, do you mean not display
Legend Entries with zero values. That could be done with a macro, though it
would need to be rerun each time values change.

Regards,
Peter T

> I currently have some data as shown below:
>
[quoted text clipped - 10 lines]
>
> D
Earl Kiosterud - 30 Mar 2005 00:51 GMT
To add to Peter's response, you can make a separate column for the pie
labels (presuming you're using labels, not the legend, for the slices) that
yields an empty string for those values that are zero.  This way, you get no
labels for zero-value items:

Label    Chart label         Value
Tom     =IF(C2<>0, A2, "")     1
Sally   =IF(C3<>0, A3, "")     0
etc.

Use the Chart Label column for the chart.  You can hide that column.
Signature

Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

> In a pie chart no slice is shown for a zero value, so unlike other chart
> types you don't really need to cater for it. Or, do you mean not display
[quoted text clipped - 20 lines]
>>
>> D
Jon Peltier - 31 Mar 2005 05:05 GMT
Alternatively, you can use a custom number format that excludes zero
displays, like one of these:

   0;;;
   0%;;;

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

> To add to Peter's response, you can make a separate column for the pie
> labels (presuming you're using labels, not the legend, for the slices) that
[quoted text clipped - 7 lines]
>
> Use the Chart Label column for the chart.  You can hide that column.
Earl Kiosterud - 31 Mar 2005 16:52 GMT
Jon,

I don't think I follow.  The idea is to make the label disappear when the
value is zero.  The label and the value are in separate cells.

Signature

Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

> Alternatively, you can use a custom number format that excludes zero
> displays, like one of these:
[quoted text clipped - 21 lines]
>>
>> Use the Chart Label column for the chart.  You can hide that column.
Peter T - 31 Mar 2005 17:28 GMT
Earl,

Jon's neat idea will display no value in the label, and the label
"apparently" disappear providing labels are formatted with Fill and Border
"None".

In Format labels..., try custom number format like this:

General;General;

"General" can be changed as required but nothing after the second ";", the
zero value format.

This also assume that Labels are set to "show value" rather than "show
label" in Chart Options > Data Labels.

We never did learn what the OP didn't want to show, so we don't know if his
Labels show values or labels, if indeed his problem concerns labels !

Regards,
Peter T

PS your idea is very clever !

> Jon,
>
[quoted text clipped - 31 lines]
> >>
> >> Use the Chart Label column for the chart.  You can hide that column.
Earl Kiosterud - 01 Apr 2005 16:09 GMT
Peter,

Yeah.  I presumed the OP wanted category names for labels, not values.  I
think Jon's solution was for showing values.

Signature

Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

> Earl,
>
[quoted text clipped - 56 lines]
>> >>
>> >> Use the Chart Label column for the chart.  You can hide that column.
Jon Peltier - 02 Apr 2005 04:41 GMT
Earl -

That's right, I was thinking of values, and I replied to your post without noticing
that the formulas pointed to the labels.

- Jon

> Peter,
>
> Yeah.  I presumed the OP wanted category names for labels, not values.  I
> think Jon's solution was for showing values.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.