如何在Excel饼图中将类别抑制为零值? [英] How to suppress Category in Excel Pie Chart for zero values?
本文介绍了如何在Excel饼图中将类别抑制为零值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
饼图的数据源是数据透视表,其值设置为列总数的%.我可以通过将数据标签中的自定义格式编号作为#来抑制饼图中的数据值.但这仍使类别名称可见.请建议如何隐藏类别名称.
The data source for the Pie chart is Pivot table, with values set as % of column total. I am able to suppress the data values in the Pie chart by custom formatting number in Data labels, as #. But this still leaves Category name visible. Please advise how to suppress the Category name.
推荐答案
饼图将忽略类别,其类别的值设置为#N/A,因此,将0切换为NA()的if语句将执行此操作.
Pie charts will ignore categories with value set to #N/A so an if statement that switches zeros to NA() will do this.
这篇关于如何在Excel饼图中将类别抑制为零值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文