Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 803
  • Last Modified:

Two diffferent data labels in an Excel bar graph

Can someone tell me how to add 2 different data labels in single bar graph created in Excel 2007. I need the labels as they are in the attached sample graph? Atleast if I can add the count and the % using some seperator (like 4 - 50%) , that would be fine.
Report.JPG
0
Srinivas_Vengala
Asked:
Srinivas_Vengala
  • 3
  • 2
1 Solution
 
jppintoCommented:
Please check XY Chart Labeler:

http://www.appspro.com/Utilities/ChartLabeler.htm
0
 
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello,

you will need to create a range of cells where you concatenate the absolute value and the percentage value into a text string, which can include a line break (char(10)).

I will leave it up to you how to calculate the percentage (or to use a manually entered value).

You can use a formula like

=B2&CHAR(10)&TEXT(B6,"0%")

to create a cell with a text label that has the absolute value (from B2) in the first line and the percentage value (from B6) on the second line.

You can then use the free XY Chart Labeler tool to add these newly created cells as labels to your data series. Download the tool here: http://www.appspro.com/Utilities/ChartLabeler.htm
If you work with charts on a regular basis, this is indispensible.

There are manual ways of linking the chart label to the cells, but they are cumbersome. The XY Chart Labeler is waaaay easier.

Note: you only need the chart labeler tool when you create a chart or add more data to a series. You can distribute a chart that has been created with the tool and send it to other people who do not have the tool. They will still be able to see the labels.

See attached file for a working example.

cheers, teylyn
Book5.xlsx
0
 
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
@jppinto: the Chart Labeler on its own is not sufficient to show two different labels for a data series. It is necessary to create the concatenated data label, because the Chart Labeler will not combine more than one cell into a label.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Srinivas_VengalaAuthor Commented:
teylyn: So, I need to change it for each label for all the bars?  I have many graphs with many bars. Do you have any method to change it once per graph?
0
 
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello, You will need to create the cells that store the text for the labels. Once all your data labels are in spreadsheet cells, simply run the chart labeler on each series.
0
 
Srinivas_VengalaAuthor Commented:
OK
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now