How to Make a Stacked Bar Chart in Excel

Learn how to make a stacked bar chart in Excel with a practical data layout, chart creation, and formatting tips. This comprehensive guide from XLS Library covers data preparation, customization, showing percentages, and common pitfalls for clear, compelling visuals.

XLS Library
XLS Library Team
·5 min read
Quick AnswerSteps

You can make a stacked bar chart in Excel by organizing data with categories and series, selecting the data range, and inserting a stacked bar chart. Then customize with colors, labels, and legends to clearly compare components. This guide covers data layout, chart creation, formatting, and common pitfalls. Follow the steps below for a precise workflow.

Understanding stacked bar charts in Excel

A stacked bar chart displays parts of a whole across categories. Each bar represents a category, and the bar is divided into colored segments for each series. When you learn how to make stacked bar chart in excel, you gain a powerful visualization for comparing component contributions across groups. In Excel, you typically create this by laying out data in columns: a category label column, followed by one column per series. The order of the series matters because it determines how colors stack from bottom to top, impacting readability and interpretation. In practice, you’ll balance accuracy with aesthetics by choosing a clear color palette and labeling strategy. According to XLS Library, mastering stacked charts enhances data storytelling, especially for dashboards and reports.

Preparing your data for a stacked bar chart

A clean data table is the backbone of a reliable stacked bar chart. Place categories in the leftmost column and place each series in its own column with a header that names the series (e.g., North, South, East, West). Ensure values are numeric and free of text contamination. If you plan to display percentages, add a total column per category and keep a parallel set of percentage values. Consistency in data labeling helps Excel interpret the data correctly and makes the chart easier to read in presentations. For best results, use a single source of truth for your numbers and avoid hidden rows or filters when selecting data for the chart.

Inserting the chart: step-by-step

To create the chart, select the entire data range including headers, then go to the Insert tab, choose the Bar chart icon, and pick Stacked Bar. Excel will render a horizontal stacked chart with each category represented by a bar, divided into colored segments for each series. If Excel suggests a different chart type, you can switch to the stacked bar without losing your data. Familiarize yourself with the Data Series panel to verify the correct series are plotted and in the desired order. Remember to include the category labels on the axis for quick interpretation. The XLS Library approach emphasizes starting with a correct data structure before customizing visuals.

Customizing chart elements for readability

Customizing improves readability and impact. Start with the chart title and axis labels, then adjust the color palette so adjacent segments contrast well. Use bold fonts for the category axis and a readable legend placed outside the chart area. Add Data Labels if needed, choosing the option to show values for each segment so viewers can compare contributions at a glance. In Excel, you can format each series individually, reorder stacking using the Series Order option, and apply a consistent theme across your workbook to keep visuals cohesive. A well-formatted chart reduces cognitive load and makes your insights clearer.

Showing percentages vs. absolute values

If your goal is proportional comparison, convert to a percentage stack. Calculate each category total and then compute each segment as a percentage of that total. Then either display percentage data labels or replace the data range with the percentage values and update the axis to show 0-100%. This approach helps audiences see how each component contributes to the whole per category. The process is straightforward but requires careful data preparation to ensure accurate percentages.

Handling common data issues and pitfalls

Common pitfalls include blank cells, non-numeric entries, or incorrect data ranges. Always verify that all categories have corresponding values for every series. If some values are missing, decide whether to treat them as zeros or exclude those categories from the chart. Wrong stacking order can mislead viewers, so adjust the Series Order to reflect logical priority (e.g., smallest to largest contribution). Another pitfall is clutter: too many series can overwhelm the chart; consider grouping or removing low-impact series to maintain clarity. According to XLS Library analysis, clear data structure and labeling significantly improve readability.

Real-world examples and use cases

Stacked bar charts excel in scenarios where you compare compositions across groups. Example one: quarterly product sales by region, showing how each region contributes to the total per quarter. Example two: budget categories within departments, illustrating how funds are allocated. In both cases, a stacked bar highlights proportions and trends while keeping the total visible. When designing, align the color scheme with your dashboard theme and use annotations to call out notable changes. With thoughtful data, a stacked bar chart becomes a powerful storytelling tool.

Accessibility and best practices

Make charts accessible by using high-contrast colors and ensuring the legend is readable. Add descriptive axis titles and a concise chart caption for context. If you expect screen readers, provide alternative text or a brief description of the chart’s purpose and what the stacked segments represent. Keep the file size moderate and avoid overly busy color schemes. By following accessibility best practices, you ensure your insights reach a wider audience, including those relying on assistive technologies. XLS Library advocates thoughtful accessibility as a core component of effective data communication.

Next steps and troubleshooting across Excel versions

As you migrate your workbook across Excel versions or between Windows and Mac, chart behavior may vary slightly. Double-check that data ranges stay intact after version changes, and re-apply formatting if features differ. Save a template version of your chart with your preferred settings so you can reuse it for future dashboards. If you encounter issues, consult the built-in chart wizard or use the Analyze/Chart Tools contextual tabs to adjust the chart type, data series, and formatting. The goal is consistency and clarity across use cases.

Tools & Materials

  • Computer with Excel installed(Office 365/Excel 2019+ recommended for best chart features)
  • Sample dataset (Excel workbook or CSV)(Clean data: categories in column A, series values in B, C, D, etc.)
  • Color palette or theme(For consistent styling across charts)
  • Keyboard/mouse or drawing tablet(Helpful for precise selections)
  • Power Query (optional)(Useful for data cleaning before charting)

Steps

Estimated time: 25-40 minutes

  1. 1

    Prepare your data layout

    Create a clean table with a single category column followed by one column per data series. Add headers for each column. Ensure all values are numeric and free of text, and keep categories consistent across the dataset.

    Tip: Keep the first column for categories and the rest for series; this aligns with Excel’s expected data structure for stacked charts.
  2. 2

    Select the data range

    Highlight the entire data range, including headers. Do not include totals or extraneous rows beyond the dataset. This ensures the chart reflects exactly what you want to compare.

    Tip: Include headers so Excel can label the chart properly and you can edit series names later.
  3. 3

    Insert the stacked bar chart

    Go to the Insert tab > Bar Chart icon > Stacked Bar. Excel will create a horizontal stacked bar chart representing each category with segments for each series.

    Tip: If Excel suggests a different type, you can switch to stacked bar without losing data.
  4. 4

    Verify data series and order

    Open the Series Options/Select Data dialog to verify each series is plotted in the intended order. Adjust if necessary, as stacking order affects legibility and color priority.

    Tip: A logical order (e.g., largest to smallest contribution) can improve readability.
  5. 5

    Add axis titles and legend

    Label the horizontal axis (value) and the vertical axis (categories). Place the legend where it won’t obscure data, commonly to the right or below the chart.

    Tip: Descriptive labels help readers interpret the chart quickly.
  6. 6

    Format colors and style

    Choose a color palette with high contrast between segments. Apply a consistent theme to align with your report or dashboard and adjust font sizes for readability.

    Tip: Limit the palette to 4–6 distinct colors to avoid visual overload.
  7. 7

    Add data labels (optional)

    If you want exact values visible, add data labels to each segment. For large datasets, consider showing only total values or labels for prominent segments to reduce clutter.

    Tip: Data labels per segment improve precision but can clutter the chart if overused.
  8. 8

    Show percentages (optional)

    To display percent composition, compute percentages for each category and use those values in the chart or enable percentage data labels. Keep a separate axis scaled 0–100% if you choose this path.

    Tip: Percentage stacks emphasize proportion rather than absolute values.
  9. 9

    Review, save, and reuse

    Double-check accuracy, spelling, and alignment with the report’s narrative. Save the chart as a template for future use in similar dashboards.

    Tip: Saving as a template speeds up future visualizations and ensures consistency.
Pro Tip: Keep data labels legible by using a light font and avoiding overly small sizes.
Warning: Avoid blank cells; blanks can produce misleading gaps in the stack.
Note: If you plan to share the chart, export to a vector-friendly format or copy as an image for reports.
Pro Tip: Order by value significance to help viewers quickly grasp major contributors.
Pro Tip: Use tooltips or a legend title for accessibility and clarity.

People Also Ask

What is a stacked bar chart?

A stacked bar chart shows how different parts contribute to a total for each category. Each bar is divided into colored segments representing separate series values, allowing quick comparison of composition across groups.

A stacked bar chart shows parts of a whole for each category, with segments stacked on top of each other.

How do I show percentages in a stacked bar chart?

To show percentages, compute each segment as a percentage of the category total and enable data labels to display those percentages. You can also format the axis to reflect a 0–100% scale for clarity.

Compute percentages per category and show them with labels, or use a 0–100% axis.

Can I reorder the stacking order in Excel?

Yes. Use the Select Data dialog to rearrange the Series Order. The bottom segment depends on the first series in the order, and the visual stacking will update accordingly.

You can reorder by changing the series order in the data series panel.

Which versions of Excel support stacked bar charts?

Stacked bar charts are supported in most modern Excel versions, including Excel for Microsoft 365 and Office 2019+. Some interface options may vary slightly between Windows and Mac builds.

Stacked bar charts are supported in recent Excel versions; the UI may differ slightly by platform.

Why isn’t my chart showing all categories?

This usually happens if the data range excludes some rows or there are blank cells. Re-select the full data range and ensure headers match the data. If you used filters, clear them before selecting.

Make sure you included all rows in the range and there are no hidden filters hiding data.

How can I export or share a stacked bar chart?

Copy the chart as an image for inclusion in documents or export the entire workbook as needed. You can also save the chart as a template for reuse in other workbooks.

Copy it as an image or save it as a template for future use.

Watch Video

The Essentials

  • Structure data clearly before charting
  • Use stacked bar for component comparison across categories
  • Color carefully to maximize readability
  • Decide between absolute values and percentages early
  • Save chart templates for consistency
  • Ensure accessibility with descriptive labels and legends
Process to create a stacked bar chart in Excel

Related Articles