A stacked bar chart in Excel shows several data series on top of each other within one bar, so you can see both the total and the breakdown that makes it up - for example total sales per region split by product category. You can create one in under a minute: select your data, go to Insert > Charts, and pick the stacked bar option. The steps below use the desktop version of Excel for Windows; on Mac the ribbon is nearly identical, and in Excel for the web the Insert tab offers the same chart types with slightly fewer formatting options.

What You'll Need

  • Excel on desktop (Microsoft 365 or a recent standalone version), Excel for Mac, or Excel for the web
  • A data range arranged with categories in the first column (or row) and one column per series you want stacked
  • Column headers, so Excel can name each series automatically

Step-by-Step

  1. Set up your data so each row is one category (e.g. a month or region) and each column after the first is a series to stack (e.g. a product line). Include the header row and the category column. Avoid blank rows or columns inside the range.
  2. Click any single cell inside the data. Excel will detect the surrounding table automatically. If your data has irregular gaps, select the whole range manually instead, including headers.
  3. Go to the Insert tab on the ribbon. In the Charts group, click the bar/column chart icon (it looks like small vertical or horizontal bars). Exact icon placement varies slightly between versions.
  4. In the dropdown, choose the second 2-D option, labelled Stacked Column, for vertical bars. If you want horizontal bars, choose Stacked Bar under the horizontal (Bar) section instead. Do not pick the 100% Stacked option unless you want every bar scaled to the same total.
  5. Excel inserts the chart on the same sheet. Click it and drag it to reposition; drag a corner handle to resize.
  6. Check the legend, which appears by default, to confirm each colour matches a series. To toggle it, click the chart, then the Chart Elements button (the + sign at the top right of the chart) and tick or untick Legend.
  7. Add data labels if you want the values shown on each segment: Chart Elements (+) > Data Labels > More Options, then choose a position such as Center.
  8. Rename the chart by clicking the placeholder title and typing your own.
  9. To change colours, right-click any segment and select Fill to recolour that whole series, or use the Chart Styles button (paintbrush icon next to the chart) to apply a ready-made style.
  10. Adjust the axis if needed: right-click the value axis > Format Axis to set minimum and maximum values, or reverse the category order under Axis Options.
  11. When you are happy, the chart is linked to the data, so editing the cells updates the chart automatically.

Common Mistakes

  • Selecting the 100% Stacked option by accident - this normalises every bar to 100%, hiding the actual totals.
  • Leaving a blank row or column inside the data range, which causes Excel to split the selection or produce an odd chart.
  • Putting totals in the data. If you include a Total column, it gets stacked on top as an extra series and doubles the bar height. Exclude it from the selection.
  • Merging cells in the header or category column, which breaks chart data detection. Avoid merged cells in chart source data.
  • Using too many series. Beyond five or six, the segments become thin and hard to read - consider grouping smaller categories into an Other series.

Tips

  • Format your data as a proper table first (select it, then Insert > Table) so the chart expands automatically when you add new rows or columns.
  • Put your most important series at the bottom of the stack, where segment lengths are easiest to compare across bars.
  • Use horizontal stacked bars when category names are long - there is more room for labels along the left axis.
  • Add a total above each bar using data labels from a hidden helper series containing the row totals, if you need totals and breakdown together.
  • Right-click a segment and choose Format Data Series to add a border between segments, which makes the boundaries clearer in print.
  • Click the chart and use the Chart Styles button to try several looks quickly instead of formatting series by hand.

Troubleshooting

  • Chart shows the wrong series stacked (everything is one colour or categories are swapped): click the chart, go to the Chart Design tab, and click Switch Row/Column.
  • Excel only charted part of the data: click the chart, Chart Design > Select Data, and reselect the full range under Chart data range, including headers.
  • Newly added rows do not appear: either resize the source range via Chart Design > Select Data, or convert the data to an Excel table so the range grows automatically.
  • Bars show percentages instead of values: you picked 100% Stacked. Right-click the chart, choose Change Chart Type, and select the plain Stacked Column or Stacked Bar option.
  • Data labels overlap on small segments: click a label, then in Format Data Labels choose a different position, or delete labels on the smallest series by selecting that series' labels and pressing Delete.
  • Legend or axis labels are cut off: drag the chart larger, or click the labels and reduce the font size from the Home tab.

Frequently Asked Questions

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

A stacked bar chart places series on top of each other in one bar, showing the total and its parts. A clustered chart puts the series side by side, which makes comparing individual series across categories easier but does not show totals.

Can I add a total label above each stacked bar?

Not directly - Excel has no built-in total label for stacked charts. The standard workaround is a hidden helper series containing the row totals, plotted as a line on a secondary axis with data labels shown and the line itself made invisible. Alternatively, skip totals and let readers judge bar lengths.

How do I reverse the order of categories on the axis?

Right-click the category axis, choose Format Axis, and under Axis Options tick Categories in reverse order. If the value axis jumps to the top afterwards, set the vertical axis to cross at the maximum category.

Can I make a stacked bar chart in Excel for the web?

Yes. Select the data, go to Insert > Charts, and choose the stacked column or stacked bar type. Formatting options are more limited than desktop Excel, but the core chart works the same.

Why are my segments showing zeros as gaps?

Zero values are valid - they simply create zero-height segments. If you would rather show gaps, use NA() in the cells instead of 0, or leave the cells empty, since empty cells are treated as gaps by default. Check Select Data > Hidden and Empty Cells to control this.

How many series can I stack in one bar?

Excel allows many series, but readability is the real limit. Around five or six segments per bar is the practical maximum before colours become hard to distinguish and the legend unwieldy.