跳到主要內容

如何在Excel中將總標籤添加到堆積的柱形圖中?

對於堆疊的條形圖,您可以輕鬆地將數據標籤添加到堆疊的條形圖的各個組件中。 但是有時您需要在堆疊的條形圖的頂部顯示一個浮動的總計值,以便使圖表更易於理解和閱讀。 基本圖表功能不允許您為各個組件的總和添加總數據標籤。 但是,您可以通過以下過程解決此問題。


將總計標籤添加到Excel中的堆疊柱形圖

假設您具有以下表格數據。

1。 首先,您可以通過選擇要創建圖表的數據並單擊以創建堆積的柱狀圖。 插入 > ,下 二維柱 選擇堆疊的列。 查看屏幕截圖:

現在已經建立了一個堆積的柱狀圖。

2。 然後右鍵單擊 總系列 並選擇 更改系列圖類型 從右鍵單擊菜單中。

3。 在 更改圖表類型 對話框中,單擊 圖表類型 的下拉列表 Total 數據系列,選擇 Line 從下拉列表中,然後單擊 OK 按鈕。

現在 Total 數據系列已更改為折線圖類型。 查看屏幕截圖:

4。 選擇並右鍵單擊新的折線圖,然後選擇 添加數據標籤 > 添加數據標籤 從右鍵單擊菜單中。 看截圖:

現在,每個標籤都已添加到“總計”數據系列的相應數據點。 數據標籤位於每列的右上角。

5。 繼續選擇數據標籤,右鍵單擊並選擇 格式化數據標籤 從上下文菜單中,查看屏幕截圖:

6。 在 格式化數據標籤 窗格中的 標籤選項 標籤,然後檢查 以上 在選項 標籤位置 部分。 看截圖:

7。 然後需要使折線圖不可見,右鍵單擊折線,然後選擇 格式化數據系列。 看截圖:

8。 在 格式化數據系列 窗格中的 填充線 選項卡,檢查 沒有線 選項。 看截圖:

現在,總標籤已添加並顯示在放樣列上方。 但是,“總數據系列”標籤仍顯示在圖表區域的底部。

9。 您可以刪除 Total 右鍵單擊數據系列標籤,然後從上下文菜單中選擇“刪除”。 或者,您可以選擇Total data series標籤,然後按 刪除 鍵將其刪除。

到目前為止,您已經創建了一個堆積柱形圖,並為每個堆積柱添加了總計標籤。


使用出色的工具將總標籤添加到堆積的柱形圖中

如果你有 Excel的Kutools 安裝後,您只需在Excel中輕鬆單擊即可將所有標籤總數快速添加到堆積的柱形圖中。

Excel的Kutools - 包含 300 多個 Excel 基本工具。 享受全功能 30 天免費試用,無需信用卡! 現在下載!

1。 創建堆積的柱狀圖。 選擇源數據,然後單擊 插入 > 插入柱形圖或條形圖 > 堆積的列.

2。 選擇堆疊的柱形圖,然後單擊 庫工具 > 圖表 > 圖表工具 > 將總計標籤添加到圖表.

然後,將所有標籤總數立即添加到堆疊柱形圖中的每個數據點。


在Excel中創建帶有總標籤的堆積式柱形圖

如果你有 Excel的Kutools 安裝後,只需單擊幾下即可同時創建包含總標籤和百分比數據標籤的堆疊列。

Excel的Kutools - 包含 300 多個 Excel 基本工具。 享受全功能 30 天免費試用,無需信用卡! 現在下載!

1。 假設您已準備好您的源數據,如下圖所示。

2。 選擇數據源,然後單擊 庫工具 > 圖表 > 百分比堆積圖 啟用該功能。

3。 在帶百分比的堆積柱形圖對話框中,請根據需要指定數據范圍,軸標籤和圖例條目,然後單擊 OK 按鈕。

保養竅門:帶百分比的堆積圖功能可以根據所選數據源自動選擇數據范圍,軸標籤和圖例條目。 您只需要檢查自動選擇的範圍是否正確即可。

現在,將創建帶有總數據標籤和數據點標籤(以百分比顯示)的堆疊柱形圖。

筆記:
如果不需要數據點的百分比標籤,則可以右鍵單擊百分比標籤並選擇 刪除 從上下文菜單中。 (此操作可以一次刪除一組數據系列的百分比標籤)


演示:將總計標籤添加到Excel中堆積的柱形圖


Excel的Kutools:超過 300 個方便的工具觸手可及! 立即開始 30 天免費試用,沒有任何功能限制。 現在就下載!

相關文章:

最佳辦公生產力工具

🤖 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 (23)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks, it was much helpful.
This comment was minimized by the moderator on the site
Amazing Trick!
This comment was minimized by the moderator on the site
Every single time I touch the chart in any way, the label position of the total switches back to "Right" instead of "Above". Can't even copy/paste-as-picture, reverts back to right-position.

Anyone else seen this issue and figured out how to fix it? (Excel 2016 on Win10)
This comment was minimized by the moderator on the site
Hi Bee,
Please make sure that you have chosen Above option in the Label Position section of the Format Data Labels dialog box in the Step 6.
This comment was minimized by the moderator on the site
Thanks, couldn't come up with this myself!
This comment was minimized by the moderator on the site
Thank you, exactly what I was looking for!
This comment was minimized by the moderator on the site
kalau saya mau membuat data seperti nama bulan total. jadi penjelasannya mengenai banyak org yg mendaftar pada tiap bulan. namn ditambahkan tanggal saat org masuk utk daftar. bagaimana ya
This comment was minimized by the moderator on the site
Thanks v much for this!
This comment was minimized by the moderator on the site
All you need to do to add totals to a stacked bar graph or stacked 3D bar graph is create a text box and in it, refer back to the cell you want to show. Assume you have values of 50, 120 and 30 in three cells A1, A2 and A3 and a total of 200 in A4, all in sheet 1, and you then create a stacked bar chart in Sheet 2. In Sheet 2 you would insert a text box anywhere on the worksheet. In that text box you would type =Sheet1!$A$4 Move it to the top of the bar in the chart and voila, all done. The benefit of this method is that it also works with a 3D stacked bar chart.
This comment was minimized by the moderator on the site
In my experience, when resizing the chart for presentation(powerpoint) the labels do not reposition correctly due to not being tied to the columns.
This comment was minimized by the moderator on the site
This is a great idea, but doesn't work with some negative data points. Because the line goes through the middle of the bars the total data label gets obscured, any ideas?
This comment was minimized by the moderator on the site
very mindful technique, exactly I was looking for
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