Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Greg L
 
Posts: n/a
Default How do I add a total to a stacked bar graph in Excel

I am using Excel for some graphs in Powerpoint and we are using stacked bar
graphs. Does anyone know how to add a total on a stcaked graph? I can add
individual values but I am looking for total per bar.
  #2   Report Post  
bj
 
Posts: n/a
Default

the simplest way is to copy the data with the totals into the chart.
select the section of the bar equal to the totals and change the axis to
secondary
add the series values and in paterns select none for fill and line. in th
elegehgend select the line for the totals and clar all.
"Greg L" wrote:

I am using Excel for some graphs in Powerpoint and we are using stacked bar
graphs. Does anyone know how to add a total on a staked graph? I can add
individual values but I am looking for total per bar.

  #3   Report Post  
John Mansfield
 
Posts: n/a
Default

Greg,

As an example, assume you have the following in cells A1:E6. Select the
range A1:D6 (do not select the column for the total at this time). Go to the
Chart Wizard and create a stacked column chart.

Data 1 Data 2 Dummy Total
A 4 15 2 19
B 6 14 2 20
C 5 13 2 18
D 7 23 2 30
E 8 16 2 24

To add the data labels, you will need to use a data labeling tool like Rob
Boveys XY Chart Labeler or John Walkenbachs Chart Tools. Or, you can use a
macro as described here (there are also links to the sites with the above
mentioned tools at this link too):

http://www.pdbook.com/index.php/exce...t_data_labels/

Begin by clicking on the top data series in the chart (the €śDummy€ť series).
The external data range consists of the range E2:E6. You will want to link
the external data label range to this range. If you were using John
Walkenbachs Chart Tools, you would select the range D2:D6. Then you would
go to the standard toolbar and select Chart - J-Walk Chart Tools - Data
Labels Tab. In the Data Label Range input, enter the range E2:E6. Finally,
change all of the numbers in the €śdummy€ť series column from 2 to zero.

--
Regards,
John Mansfield
http://www.pdbook.com


"Greg L" wrote:

I am using Excel for some graphs in Powerpoint and we are using stacked bar
graphs. Does anyone know how to add a total on a stcaked graph? I can add
individual values but I am looking for total per bar.

  #4   Report Post  
Jon Peltier
 
Posts: n/a
Default

Greg -

Easiest of all. Plot the individual values and the totals in the chart.
Select the Totals series, and using Chart Type on the Chart menu, change
it to a Line style. Then double click the Totals series to format it. On
the Patterns tab, choose None for lines and for markers, so it's
invisible; on the Data Labels tab, choose Show Values. Press OK to close
the dialog and apply the formats. Double click on the data labels, and
on the Alignment tab choose the Above option.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Greg L wrote:

I am using Excel for some graphs in Powerpoint and we are using stacked bar
graphs. Does anyone know how to add a total on a stcaked graph? I can add
individual values but I am looking for total per bar.

  #5   Report Post  
Posted to microsoft.public.excel.charting
JWheeler
 
Posts: n/a
Default How do I add a total to a stacked bar graph in Excel

Thanks Jon. I found this technique extremely helpful.

"Jon Peltier" wrote:

Greg -

Easiest of all. Plot the individual values and the totals in the chart.
Select the Totals series, and using Chart Type on the Chart menu, change
it to a Line style. Then double click the Totals series to format it. On
the Patterns tab, choose None for lines and for markers, so it's
invisible; on the Data Labels tab, choose Show Values. Press OK to close
the dialog and apply the formats. Double click on the data labels, and
on the Alignment tab choose the Above option.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Greg L wrote:

I am using Excel for some graphs in Powerpoint and we are using stacked bar
graphs. Does anyone know how to add a total on a stcaked graph? I can add
individual values but I am looking for total per bar.




  #6   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default How do I add a total to a stacked bar graph in Excel

Even now very helpful!!

"Jon Peltier" wrote:

Greg -

Easiest of all. Plot the individual values and the totals in the chart.
Select the Totals series, and using Chart Type on the Chart menu, change
it to a Line style. Then double click the Totals series to format it. On
the Patterns tab, choose None for lines and for markers, so it's
invisible; on the Data Labels tab, choose Show Values. Press OK to close
the dialog and apply the formats. Double click on the data labels, and
on the Alignment tab choose the Above option.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Greg L wrote:

I am using Excel for some graphs in Powerpoint and we are using stacked bar
graphs. Does anyone know how to add a total on a stcaked graph? I can add
individual values but I am looking for total per bar.


  #7   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 447
Default How do I add a total to a stacked bar graph in Excel

Jon:

Thank you so much...........this is brilliant!!! It works like a charm.
Even though you posted this 2 years ago or more it has saved my sanity.
Thanks again I hope you have a wonderful HOLIDAY SEASON.

Karen Martin, Charleston, WV

"Jon Peltier" wrote:

Greg -

Easiest of all. Plot the individual values and the totals in the chart.
Select the Totals series, and using Chart Type on the Chart menu, change
it to a Line style. Then double click the Totals series to format it. On
the Patterns tab, choose None for lines and for markers, so it's
invisible; on the Data Labels tab, choose Show Values. Press OK to close
the dialog and apply the formats. Double click on the data labels, and
on the Alignment tab choose the Above option.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Greg L wrote:

I am using Excel for some graphs in Powerpoint and we are using stacked bar
graphs. Does anyone know how to add a total on a stcaked graph? I can add
individual values but I am looking for total per bar.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A stacked, clustered bar graph? Robyn Charts and Charting in Excel 1 April 10th 05 02:03 PM
How do I show negative numbers on a stacked graph JMZ Charts and Charting in Excel 3 February 26th 05 03:21 PM
total value of stacked charts OkieViking Charts and Charting in Excel 1 January 28th 05 12:57 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM
Can I use side by side colums and stacked columns in same graph? Debbie Charts and Charting in Excel 1 December 29th 04 06:01 PM


All times are GMT +1. The time now is 07:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"