A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
if you use formula =NA() instead of the holding zero the slice and data label will not appear.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a pie chart drawn from the following data:
Item A: 10
Item B: 0 (in place as I might expect some value at a later time)
Item C: 30
Item D: 60
I did away with the legend in favor of data labels on each slice of the pie, showing percentages. So Excel generates:
"Item A 10%"
"Item B 0%" (along with a paper-thin slice of the pie)
"Item C 30%"
"Item D 60%"
Other than not selecting Item B in my charting range, is there a way to prevent the data label and paper-thin pie slice for this zero-value item from appearing in the chart?
Thanks in advance,
--Eric
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
if you use formula =NA() instead of the holding zero the slice and data label will not appear.
Please view screen capture
best wishes
Follow these steps:
Click on Format Data Labels -> Number -> Custom -> #,##0;-#,##0;; -> Add
New chart is ready for use:
@Ashok, That works if the data label displays Percentage only.
Try it where Category or Value are displayed.
The OP's question would suggest they are display both Category and Percentage in the data label.
"Item A 10%"
Interestingly Excel 2013 does not show a "paper-thin pie slice" or a data label for a zero-value item.
That's an improvement - if you like pie charts.
best wishes