A stacked bar chart in Excel visually compares parts of a whole across categories, making trends and contributions easier to spot. It’s ideal for showing how each category’s total is composed of multiple segments. No special tools are required—just your data and Excel (any modern version: 2010, 2013, 2016, 2019, 2021, Microsoft 365, or Excel for the web).

What You'll Need

  • Microsoft Excel (desktop or web)
  • Data organized in a table with at least two columns: one for category labels (e.g., product names, months) and two or more for the segments to stack (e.g., Q1, Q2, Q3 sales)
  • Ensure all numeric values are in the same unit (e.g., dollars, units, percentages)
  • No blank rows or columns within your data range

Step-by-Step

  1. Open your Excel workbook and ensure your data is clean and structured. The first row should contain headers (e.g., “Region”, “Online”, “In-Store”, “Wholesale”), and each subsequent row holds one category’s breakdown. For example:
    RegionOnlineIn-StoreWholesale
    North1208050
    South9011040
    East1506070
    West1009080
    This layout ensures Excel can correctly assign segments.
  2. Select the entire data range, including headers. Click and drag from cell A1 to D5 (or however many rows/columns you have). If you click outside the data range, Excel may misinterpret the chart source.
  3. Go to the Insert tab on the ribbon.
  4. In the Charts group, click the small arrow in the bottom-right corner to open the full chart gallery (or click Insert Column or Bar Chart > Stacked Bar).
  5. Under the 2-D Bar section, click the Stacked Bar icon (it shows horizontal bars with colored segments stacked on top of each other). This inserts the chart onto your worksheet.
  6. Verify the chart orientation: Excel defaults to horizontal bars for stacked bar charts (segments stack left-to-right). If you prefer vertical stacking (like a stacked column chart), click Insert Column or Bar Chart > Stacked Column instead. But for this guide, we’re using stacked bar (horizontal).
  7. Adjust the chart title. Click the default “Chart Title” text at the top and type something descriptive, like “Q1–Q3 Sales by Region and Channel”.
  8. Format the data series if needed: right-click any bar segment, choose Format Data Series, and tweak gap width, fill colors, or border settings. For better readability, avoid too many series—three to five segments per bar is ideal.
  9. Add data labels for clarity: click the chart, then click the green Chart Elements button (a plus sign icon) and check Data Labels. To refine them, click the arrow next to Data Labels and select options like Inside End or Outside End. You can also right-click labels > Format Data Labels to show values, percentages, or category names.
  10. Customize axes if necessary. Right-click the horizontal (value) axis > Format Axis, and ensure the scale starts at 0 unless you have a strong reason not to (starting above 0 can exaggerate differences). For the vertical (category) axis, adjust label position or font size under Axis Options.
  11. Save your workbook. If using Excel for the web, click File > Save to store changes to OneDrive or SharePoint.

Common Mistakes

  • Mixing text and numbers in the same column: If one cell in a numeric column contains text (e.g., “N/A” or “—”), Excel may treat the whole column as text and exclude it from the chart. Replace non-numeric entries with 0 or blank cells.
  • Missing headers: If your first row has no header labels, Excel might use the first data row as a category label, shifting all values incorrectly.
  • Non-adjacent data selection: Holding Ctrl while selecting multiple ranges can accidentally include unrelated cells. Select only the contiguous block containing your table.
  • Using the wrong chart type: Stacked Bar (horizontal) is often confused with Stacked Column (vertical). Stacked Bar is best when category labels are long or numerous; use Stacked Column for fewer categories with short names.
  • Too many series: More than five segments per bar makes the chart cluttered and hard to read. Consider grouping minor segments into an “Other” category.

Tips

  • Use consistent colors: Assign the same color to a segment across all bars (e.g., “Online” = blue everywhere). Right-click a series > Format Data Series > Fill to set a custom color.
  • Add totals as a separate series: If you want to show total sales per region, insert a column for “Total” and sum each row. Then hide the total values in the chart by selecting that series and setting its fill to “No fill”.
  • Sort your data: Sort the data by total value (ascending or descending) to make patterns easier to spot. Select any cell in your data, go to Data > Sort, and sort by the total column.
  • Use conditional formatting first: Apply color scales or data bars to the raw table to preview how the chart might look. This helps verify your data integrity before building the chart.
  • Keyboard shortcut for chart: After selecting your data, press Alt > N > W > B (on Windows) to insert a stacked bar chart quickly.
  • Export for reports: Right-click the chart > Save as Picture to export as PNG or JPG for use in PowerPoint or Word.

Troubleshooting

  • Chart shows only one series or missing segments: Check for hidden columns or filtered rows. Unhide all columns and clear any filters (Data tab > Clear). Also, ensure your data range includes all series columns—Excel sometimes selects only the first two if you click too narrowly.
  • Segments appear in wrong order: Excel stacks series in the order they appear in the data table. Reorder your columns (e.g., move “Online” to be the first data column after categories) to control stacking order (left-to-right = bottom-to-top in the legend).
  • Labels are missing or misaligned: If data labels show #N/A or overlap, reduce font size or change label position. For very small segments, labels may be hidden automatically—try turning off label overlap in Format Data Labels > Label Options > uncheck Overlapping.
  • Bar lengths seem incorrect: Verify that all values are numeric and not stored as text (green triangle in the cell corner). Use Home > Number group to confirm the cell format is Number, not Text.
  • Chart changes unexpectedly when data updates: If your chart doesn’t update after editing source values, check if the data range is static. Right-click chart > Select Data > Horizontal (Category) Axis Labels and ensure the range includes all new rows. Use Excel Tables (Ctrl+T) for dynamic ranges.
  • Excel for the web shows a simplified chart: Some formatting options (like custom data label positions) are limited in the web version. For full control, edit the chart in desktop Excel, then refresh the web version.

Frequently Asked Questions

Can I add a percentage to each segment in a stacked bar chart?

Yes. After adding data labels, right-click the labels > Format Data Labels > check Percentage and uncheck Value. Note: this shows each segment’s % of the bar’s total, not the overall dataset.

How do I change the stacking order of segments?

Reorder the columns in your data table. The leftmost data column stacks first (at the bottom/left of the bar), and subsequent columns stack on top. Cut and paste entire columns to rearrange.

Can I combine stacked and clustered bars (e.g., side-by-side stacked groups)?

No—Excel doesn’t support mixed chart types in a single stacked bar series. However, you can create a combo chart: select your data, insert a Combo Chart (under Insert > Charts), and set one series as Clustered Column and another as Stacked Column.

Why are my bars showing as different colors even though I want uniform colors per series?

Excel assigns colors automatically per series. To fix this, right-click a series > Format Data Series > Fill > Solid fill > choose your color. Repeat for each series. This overrides Excel’s default palette.

Is it possible to show negative values in a stacked bar chart?

Yes, but Excel treats negatives as subtracting from the total (stacking downward from zero). For cleaner visuals, consider using a different chart (e.g., waterfall) or separating positive and negative values into two stacked bars.

Does this work in Excel for Mac?

Yes. The steps are nearly identical: go to Insert > Charts > Stacked Bar. Menu names may differ slightly (e.g., Format instead of Format Data Series), but the workflow is the same.