How to Make a Stacked Bar Chart in Excel (Including 100% Stacked)

A stacked bar chart in Excel gives each category one horizontal bar, split into colored segments for its parts.

You can compare the overall size and the mix at a glance.

Excel can also make every bar the same length to compare shares, but adding totals and matching your data’s order take extra steps.

I’ll show you stacked and 100% stacked bars, how to convert an existing chart, and how to add labels and fix the bar order.

Method #1: Using the Stacked Bar Chart Option

I recommend this option for most readers. You get one bar per store, with its length showing total units sold and its segments showing the products.

Below I have a dataset of units sold by store in A1:D7, with Store, Laptops, Tablets, and Phones as headers. I want to compare each store’s total and its product mix.

Excel table lists laptop, tablet, and phone sales for six stores in cells A1:D7.

Here are the steps to make the stacked bar chart:

  1. Select A1:D7, including the headers.
Cells A1:D7 are selected, including the Store, Laptops, Tablets, and Phones column headers.
  1. On the Insert tab, in the Charts group, click Insert Column or Bar Chart. Under 2-D Bar, click Stacked Bar.
Insert Column or Bar Chart menu shows Stacked Bar outlined in red under 2-D Bar.

Excel adds the chart. Each store has one bar split into Laptops, Tablets, and Phones. The legend at the bottom tells you which color represents each product.

Click the default Chart Title text and type your title. I’ve used Units Sold by Store.

Stacked bar chart shows laptop, tablet, and phone sales beside the six-store Excel table.

Note: Excel plots the first data row at the bottom, so New York (row 2) is the bottom bar and Denver is the top. You can flip this using the steps under Show the Bars in the Same Order as Your Data.

Method #2: Using the 100% Stacked Bar Chart Option

A 100% stacked bar chart makes every bar the same length, so you compare each product’s share instead of total units.

Below I have a dataset of units sold by store in A1:D7, with Store, Laptops, Tablets, and Phones as headers. I want to compare each product’s share.

Six-store sales table provides laptop, tablet, and phone values for a 100% stacked bar chart.

Here are the steps to make the 100% stacked bar chart:

  1. Select A1:D7, including the headers.
  1. On the Insert tab, click Insert Column or Bar Chart. Under 2-D Bar, click 100% Stacked Bar.
Insert Column or Bar Chart dropdown highlights the 100% Stacked Bar option with a red box.

Every bar now runs to 100%, and the horizontal axis shows percentages from 0% to 100%.

Phoenix sells 65 laptops out of 210 units, so its blue segment ends at about 31%.

100% stacked bar chart displays each store's sales proportions along an axis from 0% to 100%.

Note: Data labels on a 100% stacked bar show raw numbers, such as 65, 55, and 90, rather than percentages. To show percentages, point labels at a range of percentage cells using Value From Cells, as shown in the total labels section below.

Method #3: Changing an Existing Chart to a Stacked Bar

You can also stack a chart you’ve already made. If your chart has bars sitting side by side, you don’t need to start over.

Below I have a clustered bar chart made from the same store data in A1:D7, with Store, Laptops, Tablets, and Phones as headers. I’ll stack its bars.

Clustered bar chart displays laptop, tablet, and phone sales as separate bars beside the source table.

Here are the steps to change the existing chart:

  1. Right-click an empty area of the chart, rather than a bar, and click Change Chart Type.
Chart area right-click menu includes Change Chart Type for converting the existing clustered bar chart.
  1. In the Change Chart Type dialog box, Bar is already selected on the left because this is a bar chart. Click the Stacked Bar icon at the top (the second icon), then click OK.
Change Chart Type dialog shows the Bar category with Stacked Bar selected and a chart preview.

You now have the same chart with its bars stacked. Your chart title and formatting stay in place.

Converted stacked bar chart combines each store's laptop, tablet, and phone sales into one bar.

To get a 100% stacked bar instead, click the third icon in that dialog.

How to Customize Your Stacked Bar Chart

A few small changes make the chart much easier to read.

Add Data Labels to Each Segment

You can print each segment’s number directly on its bar. These numbers are called data labels, and they save you from checking the sheet for each value.

Here are the steps to add the labels:

  1. Click the chart.
  1. Click the Chart Elements button (the plus icon at the top right of the chart) and check Data Labels.
Chart Elements list has Data Labels checked, with sales values displayed on the stacked bar segments.

Each segment now shows its value in the center. On the New York bar, you’ll see 120 for laptops, 85 for tablets, and 150 for phones.

Sales values appear centered within every segment of the Units Sold by Store stacked bar chart.

Add Total Labels at the End of Each Bar

Excel has no built-in option to show each bar’s total on a stacked chart. I use an extra column of zeros to give those totals a place.

The zeros add nothing to the bars, but their labels sit at the end. This extra plotted column is a helper series, which I’ll call Spacer.

You can then point its labels at cells containing your totals.

Here are the steps to add total labels:

  1. Add a Spacer column in E and enter 0 in E2:E7. Add a Total column in F. In F2, enter the formula below, then copy it down to F7.
=SUM(B2:D2)

The formula adds the three product values for each store. F2 returns 355 for New York.

Spacer column E contains zeros, Total column F contains sums, and the formula bar shows =SUM(B2:D2).
  1. Select A1:E7, including Spacer but excluding Total. On the Insert tab, click Insert Column or Bar Chart, then Stacked Bar under 2-D Bar. Click the chart’s Chart Elements button and check Data Labels.

You’ll see a 0 at the end of every bar, and Spacer appears in the legend.

Stacked bar chart shows zero labels at each bar end and Spacer in the legend.
  1. Click any 0 label to select all the zero labels, then press Ctrl + 1 to open the Format Data Labels pane. Under Label Options, check Value From Cells. Select F2:F7 in the Data Label Range box and click OK.
Format Data Labels has Value From Cells checked, and the Data Label Range dialog references F2:F7.
  1. Still in the pane, uncheck Value to remove the 0. Set Label Position to Inside Base, which puts each total just past the end of its bar.
Format Data Labels pane shows Value From Cells checked, Value unchecked, and Inside Base selected.
  1. Click the legend, then click the Spacer entry so only that entry is selected. Press Delete.

Each bar now ends with its total: New York 355, Chicago 295, Houston 250, Phoenix 210, Seattle 340, and Denver 215.

Store totals of 355, 295, 250, 210, 340, and 215 appear at the bar ends.

Note: Value From Cells needs Excel 2013 or later. The labels are linked to F2:F7, so they update when your data changes.

Show the Bars in the Same Order as Your Data

Right now, New York, the first store in your data, is at the bottom. You can make the bars read from top to bottom like your sheet.

Here are the steps to reverse the stacked bar chart’s order:

  1. Right-click the store names on the left of the chart (the vertical axis) and click Format Axis.
  1. Under Axis Options, check Categories in reverse order. Under Horizontal axis crosses, choose At maximum category.
Format Axis pane has Categories in reverse order checked and At maximum category selected.

Without the second setting, the number axis jumps to the top when you reverse the order.

New York is now the top bar and Denver the bottom, matching your sheet. The legend and numbers stay at the bottom.

Stacked bar chart places New York at the top, matching the store order in the source table.

Additional Notes About Stacked Bar Charts in Excel

Keep these points in mind when you’re setting up your chart:

  • Keep the number of segments small, ideally three to five. Middle segments are harder to compare because they don’t start from the same line.
  • On the Chart Design tab, Switch Row/Column swaps what makes the bars and segments. Here, you’d get one bar per product, split by store.
  • To make the bars thicker, lower Gap Width in Format Data Series. A smaller gap leaves more room for each bar.
  • Before charting, turn your data into an Excel Table with Ctrl + T. The chart will then pick up new rows automatically.

Frequently Asked Questions

Here are a few other questions you may have about stacked bar charts in Excel.

How do I change the colors of a stacked bar chart in Excel?

Click a segment once to select the whole series, then use Shape Fill on the Format tab. You can give each product its own color.

Can I make a stacked bar chart from a PivotTable?

Yes. Click inside the PivotTable, then go to Insert > PivotChart. Pick Bar > Stacked Bar.

What is the difference between a stacked bar chart and a stacked column chart?

A stacked bar chart runs horizontally, while a stacked column chart runs vertically. You’ll find both in the same Insert Column or Bar Chart menu.

I find horizontal bars easier to read when the category names are long.

Conclusion

I’ve covered stacked and 100% stacked bars, converting an existing chart, and adding segment labels, totals, and the correct store order.

Start with Method #1 for comparing totals and their parts. Choose 100% stacked bars when you want to compare shares instead.

Other Excel articles you may also like:

Leave a Comment