Friday, December 4, 2009

[Charts] How to Display Totals on a Stacked Column (Bar) Chart

Lets say, there is a stacked column chart in Excel created using the data as shown:
Data table for Stacked Column Chart in Excel

How to create Stacked Column Chart in Excel
Now, we want to display totals, for example 34 + 43 = 77 at the top of the stacked columns. In stacked column chart, Excel does not allow the "Outer End" option of Data Label position.

To overcome this limitation, create a "Total" column in the data table as shown:

How to add total at top of Stacked Column Chart in Excel
Now change the source data of the chart to include column D as shown below:
The Total column will appear as show above.
Next, right-click on the new "total" series and change the Chart Type to Line and the resulting chart is shown below:
Data table for Stacked Column Chart in Excel
Next, double-click on the Line and set the Line color as "None" and Marker as "None" under the "Patterns" tab.
Go to "Data Labels" tab and select "Value" checkbox, and the resulting final chart will look like this:
Data table for Stacked Column Chart in Excel
Hope you found this tutorial helpful.

No comments:

Post a Comment