Excel Stacked Bar Chart with Subcategories: 2 Methods

Method 1 – Using Stacked Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

Steps:

  • Select the dataset.
  • Go to the Insert tab from the Ribbon.
  • Select the Insert Column or Bar Chart from the Charts option. 

This will lead you to a drop-down menu.

  • From the drop-down, select the Stacked Bar.

Using Stacked Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

You will see a chart has been inserted into the worksheet. I got the chart you can see in the following picture. This is not the chart I want.

Using Stacked Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

We will change the chart as I want it to be. I want to change the rows and columns.

  • Select the stacked chart.
  • Go to the Chart Design tab.
  • Select Switch Row/column.

You will see that I have got my desired chart. At this point, you can format the data series of the chart.

  • Right-Click on any bar of the stacked bar chart.
  • Select Format Data Series.

Using Stacked Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

Format Data Series dialog box will appear on the right side of the screen.

  • You can change the gap width. We changed it to 60%. You can change it to your liking.

  • Right-Click on any bar.
  • Select Add Data Labels.

Using Stacked Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

This will add Data Labels to your stacked bar chart. In the following picture, you can see that I have added Data Labels to my chart, and this is how it looks at this point.

You can format the chart.

  • Go to Chart Styles.
  • Select Styles.
  • You can select any chart format from there. We selected the marked format in the image below, but you can select any other design you like.

Using Stacked Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

  • You can add a chart title to your stacked bar chart.

You can also change the colors of the stacked bar chart.

  • Go to the Color from the Chart Styles option.
  • Select the color you like. We selected the marked color in the image, which was the chart’s default color, so you do not see any change.

This is what the chart looks like after formatting.

Using Stacked Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

You got my desired stacked bar chart with subcategories.

Using Stacked Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories


Method 2 – Use of Clustered Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

Steps:

  • Select the dataset.
  • Go to the Insert tab from the Ribbon.
  • Select the Insert Column or Bar Chart from the Charts option. 

You will see a drop-down menu.

  • Select Clustered Bar.

Use of Clustered Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

You will see that a clustered bar chart has been inserted into your worksheet. We want a stacked bar chart.

Use of Clustered Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

To get our stacked bar chart,

  • Right-Click on any bar.
  • Select Change Series Chart Type.

  • Add Profit to the secondary axis.
  • Select OK.

You will see that the bars are stacked. The two axes do not match each other.

I will show you how to solve this problem.

  • Select the secondary axis and then Right-Click on it.
  • Select Format Axis.

Use of Clustered Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

The Format Axis dialog box will appear on the right side of the screen.

  • Select the Bounds as the primary axis. We selected 140 because our primary axis’ Maximum Bound is 140.

You can see that the bar chart is now stacked properly.

You can add data labels.

  • Right-Click on any bar.
  • Select Add Data Labels.

Use of Clustered Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

After adding the data labels. You can format your stacked bar chart.

  • Go to the Chart Styles.
  • Select Styles.
  • You can select any chart format from there. We selected the marked format in the image below, but you can select any other design you like.

Use of Clustered Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

You can change the colors of the stacked bar chart.

  • Go to the Color from the Chart Styles option.
  • Select the color you like. We selected the marked color in the image.

This is my final stacked bar chart in the picture below.

Use of Clustered Bar Chart Feature to Create Excel Stacked Bar Chart with Subcategories

We got an Excel stacked bar chat with subcategories.

 


Download Practice Workbook


Related Articles


<< Go Back to Stacked Bar Chart in ExcelExcel Bar ChartExcel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mashhura Jahan
Mashhura Jahan

Mashhura Jahan, BSc in Industrial and Production Engineering from Bangladesh University of Engineering and Technology, invested 1.5 years at ExcelDemy. In roles like Excel & VBA Content Developer, Excel Charts, and Dashboard course trainer, she wrote 90+ articles. She was previously part of the forum support team and a junior software analyst on the Excel Add-in project. With interests spanning Excel, VBA, Power Query, Python, Data Science, and Software Development, Mashhura brings a diverse skill set to her... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo