Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Charting / March 2004

Tip: Looking for answers? Try searching our database.

Showing the "total" value with a stacked BAR chart

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anne - 02 Mar 2004 06:39 GMT
Does anyone know how I can get excel to display the total
in a stacked bar chart?  I tried the solution that
someone posted for a stacked column chart, but that
doesn't seem to work with stacked bars.  The third
series, representing the total, just keeps plotting
itself vertically while the other two series plot
horizontally.  The result, as you can imagine, is a mess
and not what I was going for at all.

Thanks, Anne
Nicky - 02 Mar 2004 06:53 GMT
Hi Anne

You can add a third 'invisible' series with stacked bars as well a
stacked columns, but to avoid the additional series orienting itsel
horzontally, you'll have to use an invisible bar, not a line. This ha
a couple more steps:

Add a third series to the chart whose values are the sum of the colum
elements
Right click on the new series an set the series axis to 'secondary'.
Right click on the series again, select format data series, select th
data labels tab, check 'value'
Right click on the series again, select format data series, select th
patterns tab. set line to 'none' and pattern to 'none',
Delete the secondary axis
If necessary, delete the additional series from the legend

The attached is an exampl

             Attachment filename: stacked bar.xls            
Download attachment: http://www.excelforum.com/attachment.php?postid=46078
--
Message posted from http://www.ExcelForum.com
LeninVMS - 02 Mar 2004 06:57 GMT
You can try the following:

If your values are located in A1:C10, with column A bearing the label
and columns B and C containing the series to be stacked, then ad
column D (Total), where you type =sum(Bx:Cx) to sum the value columns.

Create a staked bar graph for A1:D10
Click on data series corresponding to column D - Format Data Seires
Axis, and choose secondary axis

Now add a data label to this series - with value
Choose the data series again ->Format Data Series->Patterns ->Set lin
and area to none.

Clear the secondary axis and teh legend entry.

- Leni

--
Message posted from http://www.ExcelForum.com
Jon Peltier - 02 Mar 2004 13:25 GMT
Hi Anne -

To embellish Nicky's and Lenin's solutions to allow the axis scaling to
work automatically, we'll use one more column. Let A be the category
labels, B and C be the stacking values, D be a column of zeros, and E be
the sum of B and C. Make your stacked bar chart with A:D, then use Rob
Bovey's Chart Labeler or John Walkenbach's Chart Tools to add the data
in column E as data labels to the series of zeros in column D.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

> Does anyone know how I can get excel to display the total
> in a stacked bar chart?  I tried the solution that
[quoted text clipped - 6 lines]
>
> Thanks, Anne
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.