ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Graph with 0% (https://www.excelbanter.com/charts-charting-excel/184345-graph-0%25.html)

Question Boy

Graph with 0%
 
is there a way, even with vba, to get graphs not to display 0%. I have pie
charts set on a table whose value are dynamic and in some instances they can
equeal 0. I need to stop the chart from displying 0% as a data label in
those instances only, but still display the others.

Thank you,

QB

John Mansfield

Graph with 0%
 
Yes, Andy Pope has an example on his site . . .

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

--
John Mansfield
cellmatrix.net


"Question Boy" wrote:

is there a way, even with vba, to get graphs not to display 0%. I have pie
charts set on a table whose value are dynamic and in some instances they can
equeal 0. I need to stop the chart from displying 0% as a data label in
those instances only, but still display the others.

Thank you,

QB


Researcher08

Graph with 0%
 
I use Excel 2003, so I hope this still applies. After you make your chart,
double click on the offending 0% label. The cursor should change to text.
Simply delete the text of the label.
"Question Boy" wrote:

is there a way, even with vba, to get graphs not to display 0%. I have pie
charts set on a table whose value are dynamic and in some instances they can
equeal 0. I need to stop the chart from displying 0% as a data label in
those instances only, but still display the others.

Thank you,

QB


Mais qui est Paul

Graph with 0%
 
BonsourĀ® "Question Boy" wrote:

is there a way, even with vba, to get graphs not to display 0%. I
have pie charts set on a table whose value are dynamic and in some
instances they can equeal 0. I need to stop the chart from
displying 0% as a data label in those instances only, but still
display the others.


Use personal format for data labels :

0%,,,
or
general,,,


by VBA
Selection.NumberFormat = "0%,,,"
or
Selection.NumberFormat = "general,,,"


--
--
@+
;o)))



All times are GMT +1. The time now is 04:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com