Solved

Excel 2007 Chart - How to add a percent value on a bar chart?

Posted on 2010-08-19
8
1,131 Views
Last Modified: 2012-05-10
I have an Excel 2007 bar chart.  Here are sample values for the Chart:

Status      Comp      Incomp
ABC      500      200
DEF      200      200

How can I add a % value for each bar.  For example, status DEF should have a value of 50%. Note that the % value does not have to be on the bar.  It can be to one side or near the bottom of each bar.

Thank you
0
Comment
Question by:Tom Sage
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 13

Expert Comment

by:MWGainesJR
ID: 33479109
use a stacked bar.....it might be what you want....see attached.....
Book1.xls
0
 

Author Comment

by:Tom Sage
ID: 33479183
I am using a stacked bar, and I can get the chart in your sample.  

What I want to do is to add a label to each bar that has the percent.  For example, the bar on the right should have a label of 50%.

Thank you
0
 
LVL 13

Expert Comment

by:MWGainesJR
ID: 33479245
but it shows on the y axis that it is 50%.....I'm not sure you can do what you're asking......
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 13

Expert Comment

by:MWGainesJR
ID: 33479381
The attached is about as close as you can get without using vba.
Book1.xls
0
 

Author Comment

by:Tom Sage
ID: 33479474
Thank you for your extra efforts.  I want to stay with the bar chart because I can put several bars in a smaller area.  

I do not mind using VBA.  I am familar with the Basic language, and i am familiar with objects.  I usually do my VBA work by recording a macro and using the code it created during the recording.

Thanks
0
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 500 total points
ID: 33479883
Hello MisterT,

you don't need VBA for that. What you DO need, though, is to calculate the percentages in your data table. Then, with the data labels on your chart,  click on an individual data label, click into the Formula bar, enter a = sign and click the cell that has the percentage value you want to show. Repeat for all data labels.

For a large chart, this manual method may be a bit tiresome. Instead, you can use a free Add-in called XY Chart Labeler. It's available from here and can put labels on any kind of chart, not just XY.

see attached

cheers, teylyn
Copy-of-Book1-1.xls
0
 
LVL 50
ID: 33479889
0
 

Author Closing Comment

by:Tom Sage
ID: 33481064
Thanks for the help !
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question