A stacked bar chart in Excel shows several data series end to end on the same bar, so you can see both the total for each category and how much each series contributes to it. The fastest route is to lay your data out with categories down the rows and one column per series, select the whole range including the labels, then choose Insert > Insert Column or Bar Chart > Stacked Bar (or Stacked Column). The rest of this guide covers the layout, the switches that matter, and what to do when the chart comes out wrong.

What You'll Need

  • Excel for Windows, Mac, or Excel on the web. All three support stacked bar and stacked column charts; the exact ribbon labels can differ slightly by version, device, or region, so look for the stacked option in the Chart group rather than relying on pixel-perfect wording.
  • A clean data table: one header row with a name in each series column, and one header cell above the category labels or a first column of labels. No blank rows or merged cells inside the range.
  • All values in the same unit. A series measured in dollars next to one measured in hours will produce a chart that is technically correct and practically unreadable.
  • Numbers stored as numbers. Text-formatted figures will be plotted as zero, which is the single most common reason a stacked chart looks empty.

Step-by-Step

  1. Decide what each axis means. In Excel's bar-family charts, the series are what get stacked on top of each other, while the categories sit on the other axis. If you want quarters stacked inside a product bar, put products in rows and quarters in columns. If your chart comes out with the stacking the wrong way round, you will fix it later with Switch Row/Column.
  2. Arrange the data. Put category names in one column, one series per column to the right, and a short header in each. For example, A1 is blank or says "Region", B1 to E1 say "Q1" to "Q4", A2 to A5 hold the region names, and B2:E5 hold the figures. No totals column inside the selection, because a total series would double every bar.
  3. Select the range from the top-left header cell down to the last figure, then open Insert and click Insert Column or Bar Chart. In the 2-D section, choose Stacked Bar for horizontal bars or Stacked Column for vertical ones. The 3-D variants exist but make values harder to read, so leave them alone for analysis.
  4. Check that Excel picked up the labels. If the legend shows "Series1, Series2" and the axis shows 1, 2, 3, open Chart Design > Select Data and set the Legend Entries (Series) names and the Horizontal (Category) Axis Labels to the correct cells. Excel usually detects headers when they are text, but mixed types can defeat it.
  5. Switch row and column if the stacking is inverted. With the chart selected, go to Chart Design > Switch Row/Column. This swaps which dimension is stacked, which is often the difference between a readable chart and an upside-down one.
  6. Add data labels via the plus button beside the chart or Chart Design > Add Chart Element > Data Labels > Center. In a stacked chart, labels inside each segment are far more useful than axis gridlines, because readers want the segment value, not the running total.
  7. Set the gap width and overlap. Right-click any data series and choose Format Data Series. Set Gap Width to around 50 to 80 percent for visible bar thickness, and leave Overlap at 100 percent so the segments sit flush. A negative overlap splits the stack apart and reads as grouped bars.
  8. Order the series deliberately. The series listed first in the Select Data dialog sits at the bottom of each bar, or the far end of each horizontal bar. Move the series up or down with the arrow buttons in Select Data so the most important series sits against the baseline where it is easiest to compare.
  9. Sort the categories. Click a category label and use the sort options on the Data tab, or right-click the axis and choose Format Axis to reverse the plotting order. For a horizontal stacked bar, reversing the order often puts the largest total at the top, which suits rankings.
  10. Clean up the furniture. Delete the gridlines if data labels are on, shorten the legend text in the source cells rather than in the legend, and give the chart a title that states the takeaway. Then save or copy the chart into the sheet it belongs to.

Common Mistakes

Including a totals row or column in the selection. The total becomes just another series, so every bar runs to double its real length. Keep totals outside the chart range.

Treating a stacked chart as a comparison tool. Only the bottom (or first) series shares a common baseline. Segments above it start from different heights, so eye comparisons between middle segments are unfair. If the question is "which series is biggest in each category," use a clustered chart or a small multiple of separate charts.

Mixing units or scales. Stacking revenue and headcount on one axis produces a meaningless total. Use a secondary axis only with line charts, never with stacked bars.

Using 3-D stacked bars. Perspective distorts segment heights, and Excel draws some segments behind others. The numbers are no longer visually comparable.

Leaving numbers stored as text. Cells aligned left with a green triangle marker are usually text. Select the column, use Data > Text to Columns > Finish, or multiply by 1 in a helper cell, then rebuild the chart.

Too many series. Beyond about five or six segments, colours blur and small segments become slivers. Group the minor ones into "Other."

Tips

Use a single colour family with graded shades for ordered series such as quarters, and distinct hues only when the series are unrelated categories. Put the largest segment at the base of every bar so the stack reads consistently. Add a grand total above each bar with a text box, or use a second invisible series offset with a custom number format if you want automatic totals. If your categories are long text labels, horizontal stacked bars leave more room for them than vertical columns. Keep the legend to the right of a horizontal bar chart and below a column chart, and never rely on colour alone: pair a legend with direct data labels, since colour-blind readers cannot separate adjacent shades. Finally, paste chart data or the chart itself into a separate reporting sheet so that edits to the working table do not silently reshape a chart someone already reviewed.

Troubleshooting

The chart is blank or shows zeros. Almost always text-formatted numbers. Convert them, then check the range in Select Data still points at the right cells.

The bars are split apart instead of stacked. You picked a clustered chart, or the overlap was changed. Choose the Stacked type from the Insert menu and reset Gap Width and Overlap in Format Data Series.

The legend names are "Series1, Series2." The header cells were not included in the selection. Open Select Data and set each series name to its header cell.

Category labels show numbers. The label column was left out of the selection, or Excel mistook the labels for a series. Fix the Horizontal (Category) Axis Labels in Select Data.

The wrong dimension is stacked. Use Switch Row/Column on the Chart Design tab.

A category is missing. Hidden rows and columns are excluded by default. Right-click the chart and choose Select Data, then click Hidden and Empty Cells and choose to show data in hidden rows and columns.

If that did not work, delete the chart and rebuild it from a freshly selected range. Corrupted chart objects are rare but real, and a rebuild takes seconds once the data is clean.

Frequently Asked Questions

Can a stacked bar chart show a negative value?

Yes. Excel stacks positive values upward and negative values downward from the zero line, so mixed signs are visible but hard to read. Split positives and negatives into separate series or use a different chart type.

How do I make a 100 percent stacked bar chart?

Choose the 100% Stacked Bar or 100% Stacked Column option on the Insert menu. Excel converts each bar to proportions of its own total, which is ideal for share-of-total questions but hides the actual magnitudes.

Why do my segments add up to the wrong total?

A totals column is usually included in the series, or some values sit outside the selected range. Remove the totals and reselect the full block of data.

Can I stack a line on top of the bars?

Yes, with a combo chart. Change the chart type to Combo and set the line series to a line with a secondary axis if its scale differs. The line does not stack with the bars.

How do I reorder the bars themselves?

Sort the source data, or right-click the category axis, choose Format Axis, and tick Categories in reverse order. Then decide whether the value axis should cross at the maximum so it stays on the correct side.

Does this work in Excel on the web?

Yes. The stacked bar and stacked column types are available there, and the Insert menu and Chart Design tab carry the same core options, though some formatting dialogs are simplified.