How to Plot a Stacked Bar Chart from an Excel Pivot Table – 2 Examples

 

 

Example 1 – Plot a Stacked Bar Chart from an Excel Pivot Table

This is the sample dataset.

Steps to Create Pivot Table:

  • Select the whole dataset (B4:E10).
  • Go to the Insert tab.
  • Select PivotTable in Tables
  • Select From Table/Range.

  • Select your options in PivotTable from table or range and click OK.

  • In PivotTable Fields, click and drag Month to Rows.

stacked bar chart excel pivot table

  • Click and drag Store 1, Store 2, and Store 3 to Values.

The pivot table will be displayed.

 

Steps to Create a Stacked Bar Chart:

  • Select the whole pivot table or a cell in the pivot table.
  • Go to the Insert tab.
  • Click Insert Column or Bar Chart in Charts.

stacked bar chart excel pivot table

  • Select Stacked Bar.

stacked bar chart excel pivot table

  • A stacked bar chart will be displayed.

stacked bar chart excel pivot table

  • You can modify it.

stacked bar chart excel pivot table

Read More: How to Make a Stacked Bar Chart in Excel


Example 2 – Plot a Clustered Stacked Bar Chart from an Excel Pivot Table

Create a combination of clustered and stacked bar charts.

Steps to Create a Pivot Table:

  • Select the whole dataset (B4:E20).
  • Go to the Insert tab.
  • Select PivotTables inTables
  • Select From Table/Range.

stacked bar chart excel pivot table

  • Select your options in PivotTable from table or range and click OK.

  • The PivotTable Fields window will be displayed.

  • Click and drag Stores and Month to Rows.

stacked bar chart excel pivot table

  • Click and drag Week to Columns and Sales to Values.

The pivot table will be displayed.

stacked bar chart excel pivot table

 

Steps to Create a Clustered Stacked Bar Chart:

  • Select the whole pivot table or a cell in the table.
  • Go to the Insert tab and select Insert Column or Bar Chart in Charts.

stacked bar chart excel pivot table

  • Select Stacked Bar.

stacked bar chart excel pivot table

  • A stacked bar chart will be displayed.

  • Right-click a column and select Format Data Series.

stacked bar chart excel pivot table

  • In Format Data Series, go to Series Options.
  • Change the Gap Width to 50% in Series Options.

stacked bar chart excel pivot table

  • The chart will automatically change from a stacked bar to a clustered stacked bar.

  • Modify the graph.

stacked bar chart excel pivot table

You created a clustered stacked bar chart from a pivot table.

Read More: How to Create Stacked Bar Chart for Multiple Series in Excel


Download Practice Workbook

Download the workbook.


Related Articles


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

Get FREE Advanced Excel Exercises with Solutions!
Abrar-ur-Rahman Niloy
Abrar-ur-Rahman Niloy

Abrar-ur-Rahman Niloy, holding a B.Sc. in Naval Architecture and Marine Engineering, has contributed to Exceldemy for nearly 1.5 years. As a leader in Excel, VBA, and Content Development teams, he authored 114+ articles and assisted the Exceldemy forum. Presently, as a project writer, he prioritizes stepping out of his comfort zone, aiming for constant technical improvement. Niloy's interests encompass Excel & VBA, Pivot Table, Power Query, Python, Data Analysis, and Machine Learning libraries, showcasing his commitment to diverse... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo