Chart totals

tstevens

New Member
Joined
Sep 1, 2006
Messages
29
I'm using a stacked colomn chart and I want to add a data label that has the total of all the data series'.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
Hi tstevens

Maybe you are looking for an automatic solution, but a manual solution is to use a cell in the worksheet to sum all the data series and then use a data label in the chart reflecting the cell's value.

Hope this helps
PGC
 

tstevens

New Member
Joined
Sep 1, 2006
Messages
29
I do have a field with the totals but I'm not sure how to create data lable without it graghing the total in the chart.
 

tusharm

MrExcel MVP
Joined
May 28, 2002
Messages
11,029
For the series at the top add 'data labels.' Automate the process with XY Chartlabeler from www.appspro.com

I do have a field with the totals but I'm not sure how to create data lable without it graghing the total in the chart.
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884

ADVERTISEMENT

Hi tstevens

It's easy to create the label in the chart.

Let's say we want to use Cell K1,

Write in K1 what you want to display in the chart, ex:

="Totals Series 1: " & SUM(E4:E8) &CHAR(10)&"Totals Series 2: " & SUM(F4:F8)

this will display something like

Code:
Total series1: 34
Total series2: 55

Now select the chart. In the formula bar write "=". Click on the cell K1. Press enter.

You'll see the label in the chart. Now you can change it's backgriund colour, font, etc.

The label is linked to K1, if you change values in the data range of the chart, K1 changes and the chart label follows.

Remark: notice that I said click on K1 and not write K1, if you prefer to write, specify the sheet (ex: Sheet1!K1).

Hope this helps
PGC
 

Forum statistics

Threads
1,136,268
Messages
5,674,734
Members
419,523
Latest member
Urnovio

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top