How do I hide data labels in a pie chart that have a value of 0?

K

Kalabbi

I have a workbook that contains a lot of pie charts that pull data from the
various worksheets. Sometimes the value is "0" for a data point and I would
like to know if there is a way to hide the data labels for these data points
so I don't have to manually hide them. The data in this workbook is changed
often so I don't want to delete the data labels and then have to go through
the process of re-inserting them later.
 
J

Jon Peltier

If all your labels contain is the value, you can use a custom number
format. Double click the labels, click on the Number tab, select Custom
in the left hand list, and enter soemthing like this

0;;;

in the box. A custom number format has up to four items, arranged like this:

{positive format};{negative format};{zero format};{text format}

The format above tells Excel to use "0" as the format for positive
numbers, nothing for negatives, nothing for zeros, and nothing for text.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top