To show more than one category grouped side by side with each bar split into segments, you need a clustered stacked bar chart — Excel calls it a "Stacked Column" or "Stacked Bar" chart combined with data arranged so each main category has its own stack. Plain stacked charts put every segment in one bar; the trick is laying out your data with a small blank spacer row between each group so Excel draws separate stacks within the same cluster. Below is the full layout, the chart-building steps, and how to handle the parts that confuse people most.

Note that menu labels can differ slightly between Excel versions, platforms, and regions, and the steps below are written for the desktop version of Excel on Windows or Mac. The web version of Excel can also create stacked charts, though its chart editing options are more limited.

What You'll Need

  • Microsoft Excel on desktop (Windows or Mac) — the layout works elsewhere but chart editing is easier on desktop.
  • A data set with at least one grouping column (for example region, quarter or product line) and two or more sub-category columns you want stacked.
  • Clean numbers only in the value cells — no text, no stray spaces, and no merged cells in the table you select.
  • Enough clear columns to the right for the spacer rows; keep the source table away from other filled cells.

Step-by-Step

  1. Plan your structure first. Decide what goes on the category axis (the main groups) and what stacks inside each bar (the sub-categories). For a chart showing sales by region with product lines stacked, regions are the groups and product lines are the segments.
  2. Build the source table. Put your group names down the first column and one column per sub-category across the top, with a header row above. Each row should hold the numbers for one group.
  3. Add spacer rows. This is the key step for multiple stacks. After each group's row, insert a blank row (all value cells empty, and a blank or single-space label in the first column). Excel draws the empty row as a gap, so the next group starts a new stack. Keep the label cell empty or leave a space so the axis does not show a stray entry.
  4. Select the whole table. Highlight the header row and all data rows, including the spacer rows. Do not include titles, notes, or totals beneath the data.
  5. Insert the chart. Go to the Insert tab, open the Charts group, choose Column or Bar Chart (the icon shows vertical or horizontal bars), and pick Stacked Column for vertical bars or Stacked Bar for horizontal ones. The chart appears on the sheet.
  6. Check that spacer rows produced gaps. If your bars appear separated into clusters rather than one continuous stack, the layout worked. If everything is one solid bar, your spacer rows are probably missing values or the rows were excluded from the selection — reselect and reinsert.
  7. Switch rows and columns if needed. If Excel has put sub-categories on the axis instead of groups, right-click the chart, choose Select Data, and use Switch Row/Column to flip the orientation so groups sit on the category axis and segments stack within each group.
  8. Read the gaps correctly. The spacer row leaves a gap roughly one stack wide. Some readers expect a wider separation. To widen it, make the spacer row's value a tiny positive number (such as 1) and format that series with no fill and no border so it stays invisible. Alternatively reduce the Gap Width setting under Format Data Series to tighten the bars within each cluster.
  9. Clean up the legend and axis. Click the legend and delete it if the segments are already labelled, or keep it and rename the series to friendly names via Select Data. Delete the spacer row label from the axis by ensuring that first cell stays empty.
  10. Add data labels. Right-click one segment series and choose Add Data Labels. Repeat for each series. Format the labels with Format Data Labels and turn off Value From Cells unless you need custom text; keep labels small so they fit inside narrow segments.
  11. Format each stack consistently. Assign a color per sub-category, not per group, so the same product line looks the same across every region. Use a distinct palette and avoid colors that are hard to distinguish for color-blind readers.
  12. Lock the chart to the data. Name your source range or convert it to an Excel Table so that adding rows later expands the chart. When you add a new group row, remember to add its spacer row too.

Common Mistakes

  • No spacer rows. This is the single most common error: the chart becomes one continuous stacked bar with every group in a single column, which is not what most people want.
  • Blank rows aren't actually blank. A cell containing a space, zero or a formula returning an empty string may not create the gap. Clear the cells fully.
  • Totals in the source. Including a total row (or a total column) doubles the bar height and makes the scale misleading. Exclude totals from the selection.
  • Mixing units. Stacking percentages next to counts in the same stack produces meaningless segment lengths. Keep all stacked series in one unit.
  • Too many segments. More than five or six segments in a stack makes bars hard to read. Consolidate small categories into an "Other" series.
  • Colors assigned by group. If colors change group to group, readers cannot compare segments across clusters. Keep one color per segment type throughout.
  • Switching chart type by accident. Choosing the plain "Stacked" option from the gallery rather than verifying the layout means the spacer rows are wasted.

Tips

  • Label segments with values inside the bars only if they fit; otherwise use a table beneath the chart and keep bars clean.
  • Sort groups by total size for readability instead of alphabetical order.
  • If you need both stacked segments and grouped bars for two sub-dimensions, consider a small-multiples layout (several small charts) rather than squeezing three dimensions into one chart.
  • Use Format Data Series to set a consistent Gap Width across the workbook so charts in the same report look alike.
  • Keep the source table in a separate sheet if you plan to add spacer rows frequently — it keeps the working sheet tidy.
  • Save a copy of your workbook before large chart changes so you can revert if the layout goes wrong.
  • Test the chart with one more group row before sharing it, to confirm the table-driven range picks up the new spacer and data.

Troubleshooting

All bars merged into one. Confirm the spacer rows are present and truly empty, and that you selected them. Reinsert the chart from the corrected range.

Gaps are too small. The default gap equals one spacer row's worth of width. Widen it by placing a small value in the spacer row's series and hiding that series' fill and border, or reduce gap width for a tighter look.

Axis shows blank entries. Your spacer row's first cell contains a space or zero. Clear it so the axis skips the row.

Labels overlap or clip. Shorten the labels, reduce font size, or drop the inside labels and let the table carry the numbers.

Segments vanished after a data update. A formula probably returned an error or text. Check the source cells and correct them; blank is fine, errors are not.

Chart doesn't update with new rows. Convert the range to an Excel Table or extend the named range so the chart's data source grows with the data.

Colors look wrong across clusters. Right-click a series, choose Format Data Series, and set the fill manually for each series so the same segment type keeps the same color.

Frequently Asked Questions

Can Excel stack two groups side by side automatically?

Not with a single checkbox. The spacer-row layout is the standard method: Excel treats each cluster as a separate category, so groups appear side by side while their sub-categories stack inside each bar.

Why do my spacer rows show as zero-height gaps?

A gap can only appear as an empty slot in the category axis. If the row contains a value, Excel draws a bar for it. Hiding it with no fill keeps the gap visible without adding a segment.

Do I need a different chart type for horizontal bars?

No. Use the Stacked Bar option instead of Stacked Column. The same source layout and spacer rows apply, only the orientation changes.

Can I stack percentages and counts in the same chart?

Not meaningfully in one stack, because the axis has a single scale. Build separate 100% stacked and regular stacked charts, or convert everything to a common unit first.

How many sub-categories should one stack have?

Keep it to about four to six visible segments. Beyond that, merge smaller categories into an "Other" series for legibility.

Does the spacer method work in the Excel web version?

Yes, the source layout works, but fine formatting such as gap width and custom fills may be more limited. Editing on desktop is more flexible.