100% Stacked Bar Chart with % and Values

DSL1970

New Member
Joined
Jun 28, 2012
Messages
16
Hi All,


I haven't been able to find anything about this on the internet and curious if anyone can help me out with this issue I am having. I have been asked to pull together 15 questions with 5 responses Strongly Agree to Strongly Disagree as percentages in a 100% Stacked Bar Chart and a total number of respondents at the end of the 100% Stacked Bar Chart. How can I show the percentages in the charts (which I can do) and the value at the end? So in Q1 I have my chart with a 27% block for Strongly Agree through 17% for Strongly Disagree, then the Value of 94.

Like this https://exceljet.net/chart-type/100-stacked-bar-chart but with the value on the end (94 in Q1 based on the data set).

Data Set:
[TABLE="width: 840"]
<colgroup><col span="2"><col><col><col span="2"><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Strongly Agree Agree Neutral Disagree Strongly Disagree Grand Total % Grand Total Value
1 27% 24% 19% 13% 17% 100% 94
2 23% 6% 16% 9% 46% 100% 93
3 16% 23% 12% 21% 28% 100% 94
4 13% 5% 8% 11% 63% 100% 91
5 25% 19% 22% 13% 22% 100% 93
6 27% 24% 18% 10% 21% 100% 94
7 12% 15% 24% 18% 31% 100% 94
8 26% 16% 17% 14% 28% 100% 94
9 11% 11% 18% 24% 36% 100% 94
10 18% 15% 22% 19% 26% 100% 94
11 26% 12% 17% 20% 26% 100% 94
12 16% 4% 15% 19% 46% 100% 94
13 16% 11% 16% 26% 32% 100% 94
14 6% 4% 18% 26% 46% 100% 94
15 13% 7% 12% 20% 48% 100% 94


Regards,

D.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I'm working with five questions. Your data extends farther. My preference would be to have the Agrees to the right and the disagrees to the left, but I've continued with your ordering.

Organize thedata like this. H1 is deliberately left blank.


Book1
ABCDEFGHI
1Strongly AgreeAgreeNeutralDisagreeStrongly DisagreeLabel
2Question 127%24%19%13%17%940
3Question 223%6%16%9%46%930
4Question 316%23%12%21%28%940
5Question 413%5%8%11%63%910
6Question 525%19%22%13%22%930
Sheet1


Select the data from A1 to last of data in column F. Insert a 100% Bar chart.

With the Vertical axis selected, go to the chart format pane and check the box for "Categories in reverse order". Under "Horizontal axis crosses", select "At maximum value".

Move the legend to the top.

oQwQi41.png


In the worksheet select H1 through the end of the data in column I. Press Ctrl+c to copy. Select the chart. Go to the home tab, click on the arrow beneath the large Paste icon and select "Paste Special...". In the popup, select "New series", "Columns", "Series Names in First Row", and "Categories (X Labels) in First Column". Click Ok.

zQgS5RP.png


There are several ways you can now move the new "Labels" Series to the secondary axis. I usually right-click on the chart and choose "Change Chart Type...". Scroll down in the bottom pane of the pop-up and check the box for Secondary axis in the "Labels" series row. Click OK. A new axis appears at the top of the chart.

Click the Plus icon next to the chart, and click on the small right-pointing arrow next in the "Axes" line. In this new sub-menu, check "Secondary Vertical" and uncheck "Secondary Horizontal". Change this new Vertical axis to "Categories in reverse order."

Click on the legend, click on the "Labels" entry in the legend to select it and press Delete.

3ToYnrR.png


Finish formatting as you please.

iLggZfL.png
 
Upvote 0
I'm working with five questions. Your data extends farther. My preference would be to have the Agrees to the right and the disagrees to the left, but I've continued with your ordering.

Organize thedata like this. H1 is deliberately left blank.

ABCDEFGHI
Question 1
Question 2
Question 3
Question 4
Question 5

<colgroup><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E4E7E7]#E4E7E7[/URL] , align: right"][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E4E7E7]#E4E7E7[/URL] "]Strongly Agree[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E4E7E7]#E4E7E7[/URL] "]Agree[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E4E7E7]#E4E7E7[/URL] "]Neutral[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E4E7E7]#E4E7E7[/URL] "]Disagree[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E4E7E7]#E4E7E7[/URL] "]Strongly Disagree[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E4E7E7]#E4E7E7[/URL] , align: right"][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=E4E7E7]#E4E7E7[/URL] "]Label[/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]27%[/TD]
[TD="align: right"]24%[/TD]
[TD="align: right"]19%[/TD]
[TD="align: right"]13%[/TD]
[TD="align: right"]17%[/TD]
[TD="align: right"][/TD]
[TD="align: right"]94[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]23%[/TD]
[TD="align: right"]6%[/TD]
[TD="align: right"]16%[/TD]
[TD="align: right"]9%[/TD]
[TD="align: right"]46%[/TD]
[TD="align: right"][/TD]
[TD="align: right"]93[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]16%[/TD]
[TD="align: right"]23%[/TD]
[TD="align: right"]12%[/TD]
[TD="align: right"]21%[/TD]
[TD="align: right"]28%[/TD]
[TD="align: right"][/TD]
[TD="align: right"]94[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]5[/TD]

[TD="align: right"]13%[/TD]
[TD="align: right"]5%[/TD]
[TD="align: right"]8%[/TD]
[TD="align: right"]11%[/TD]
[TD="align: right"]63%[/TD]
[TD="align: right"][/TD]
[TD="align: right"]91[/TD]
[TD="align: right"]0[/TD]

[TD="align: center"]6[/TD]

[TD="align: right"]25%[/TD]
[TD="align: right"]19%[/TD]
[TD="align: right"]22%[/TD]
[TD="align: right"]13%[/TD]
[TD="align: right"]22%[/TD]
[TD="align: right"][/TD]
[TD="align: right"]93[/TD]
[TD="align: right"]0[/TD]

</tbody>
Sheet1



Select the data from A1 to last of data in column F. Insert a 100% Bar chart.

With the Vertical axis selected, go to the chart format pane and check the box for "Categories in reverse order". Under "Horizontal axis crosses", select "At maximum value".

Move the legend to the top.

oQwQi41.png


In the worksheet select H1 through the end of the data in column I. Press Ctrl+c to copy. Select the chart. Go to the home tab, click on the arrow beneath the large Paste icon and select "Paste Special...". In the popup, select "New series", "Columns", "Series Names in First Row", and "Categories (X Labels) in First Column". Click Ok.

zQgS5RP.png


There are several ways you can now move the new "Labels" Series to the secondary axis. I usually right-click on the chart and choose "Change Chart Type...". Scroll down in the bottom pane of the pop-up and check the box for Secondary axis in the "Labels" series row. Click OK. A new axis appears at the top of the chart.

Click the Plus icon next to the chart, and click on the small right-pointing arrow next in the "Axes" line. In this new sub-menu, check "Secondary Vertical" and uncheck "Secondary Horizontal". Change this new Vertical axis to "Categories in reverse order."

Click on the legend, click on the "Labels" entry in the legend to select it and press Delete.

3ToYnrR.png


Finish formatting as you please.

iLggZfL.png

Thank you thisoldman - looks like you have put some work into this - I am using Excel 2016 and don't appear to have some of these options, but I will keep playing with it....

My change chart type doesn't have any secondary options and my paste special only gives me a bitmap option!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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
Back
Top