跳到主要內容

如何在Excel中的圖表中隱藏零數據標籤?

有時,您可以在圖表中添加數據標籤,以使數據值更清晰直接地在Excel中。 但是在某些情況下,圖表中的數據標籤為零,您可能希望隱藏這些零數據標籤。 在這裡,我將告訴您一種立即在Excel中隱藏零數據標籤的快速方法。

在圖表中隱藏零數據標籤


箭頭藍色右氣泡 在圖表中隱藏零數據標籤

如果要在圖表中隱藏零數據標籤,請執行以下操作:

1.右鍵單擊數據標籤之一,然後選擇 格式化數據標籤 從上下文菜單中。 看截圖:

文檔隱藏零數據標籤 1

2。 在裡面 格式化數據標籤 對話框,單擊 聯繫電話 在左窗格中,然後選擇 自定義類別 列錶框,然後鍵入 #“”格式代碼 文本框,然後單擊 加入 按鈕將其添加到 類別 列錶框。 看截圖:

文檔隱藏零數據標籤 2

3。 點擊 關閉 按鈕關閉對話框。 然後您可以看到所有零數據標籤都被隱藏了。

文檔隱藏零數據標籤 3

尖端:如果要顯示零數據標籤,請返回“設置數據標籤格式”對話框,然後單擊 聯繫電話 > 習俗,然後選擇 #,## 0;-#,## 0 ,在 類別 列錶框。

備註:在Excel 2013中,您可以右鍵單擊任何數據標籤,然後選擇 格式化數據標籤 打開 格式化數據標籤 窗格然後點擊 聯繫電話 擴展其選擇; 接下來點擊 類別 框,然後選擇 習俗 從下拉列表中,然後鍵入 #“”格式代碼 文本框,然後單擊 加入 按鈕。

文檔隱藏零數據標籤 4


相關文章:

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (15)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Muito obrigado!
This comment was minimized by the moderator on the site
Depending on your data set, you could use a helper column. The formula could use rounddown or IF(cell<1,0,cell). This way your slicers stay intact and your pie chart uses the new column.
This comment was minimized by the moderator on the site
I have a pivot chart (pie chart) where I need to remove the labels for any slice of the pie with a value under 1%. Right now, these are displayed as 0% (no decimal places). I am also using slicers to analyse the data by month, department and person. I am trying to get the chart to hide any labels where the value is less than 1%, but this will change when I change the variables in the slicers. I have fallen down a rabbit-hole here trying to figure this out.
This comment was minimized by the moderator on the site
The Microsoft way of doing it (though not found on ana MS help page) is to click File>Options>Advanced, scroll down to 'Display options for this worksheet', and uncheck / untick 'Show a zero in cells that have a zero value'. All the zeros disappear.

I seem to have found a way to remove the axis name and space on a graph or chart for zero values: Highlight the whole table, click Home>Sort and filter>Filter, Click on the header of the column with the blank zero values, and uncheck / untick 'Blanks'.
This comment was minimized by the moderator on the site
Thanks that really works well for me.
This comment was minimized by the moderator on the site
tnx, it works
This comment was minimized by the moderator on the site
How can I hide Zero Data Labels when it is percentage (for example 0,00%, I do not want that label to be shown)?
This comment was minimized by the moderator on the site
<span style="letter-spacing: 0.2px; color: inherit; font-family: inherit; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit;">0.0%;-0.0%;""    </span>
This comment was minimized by the moderator on the site
Hi
Thank you for sharing the solution above. It was really great help. However, after hiding zero values, I am having difficulties with hiding their labels. Can you please give a solution for that problem, too? Thank in advance for your help.
This comment was minimized by the moderator on the site
Found this solution absolutely useful. Thanks a ton.
This comment was minimized by the moderator on the site
Great solution! Can this be done retaining decimal points on the numbers that do appear?
This comment was minimized by the moderator on the site
Kelcey, use: #,##"";-#,##""; When using the second semicolon, you define what happens in case of zero. So, if you don't define anything, the value stays blank.
This comment was minimized by the moderator on the site
I use 0.0;;; and it also does the trick, in terms of retaining decimal places. You'd just adjust to the # of sig figs you want to keep. You have to assign the custom value to each data label series, but it keeps that format each time you refresh the data.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations