简体   繁体   English

如果 = #N/A,Excel 图表隐藏数据标签

[英]Excel graph hide data label if = #N/A

In Excel, I am generating a bar chart from cells using the N/A() function (=IF(value=0,NA(),value)).在 Excel 中,我使用 N/A() 函数 (=IF(value=0,NA(),value)) 从单元格生成条形图。 I precise I cannot use "" instead of n/a() and I must use bar graphs.我准确地说我不能使用“”代替 n/a(),我必须使用条形图。

My problem is I cannot prevent data labels from showing #N/A for N/A cells...我的问题是我无法阻止数据标签为 N/A 单元格显示 #N/A ...

I tried many formats for the data label, using this definition: positive;negative;zero;text .我为数据标签尝试了多种格式,使用以下定义: positive;negative;zero;text For example this one: 0;-0;;比如这个: 0;-0;;

It prevents well any text, or 0 value to be displayed in data labels... But #N/A remains.它可以很好地防止任何文本或 0 值显示在数据标签中......但 #N/A 仍然存在。

在此处输入图像描述

I have read many topics on various forums and sites without success.我在各种论坛和网站上阅读了许多主题,但没有成功。 Could you please help on this ?你能帮忙吗?

You can filter the columns in your data series by right clicking on the column and navigating to the "Select Data" option.您可以通过右键单击列并导航到“选择数据”选项来过滤数据系列中的列。 From there you can un-check the data from the horizontal axis that you don't want to be displayed.从那里您可以取消选中您不想显示的水平轴上的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM