Tool Guide

How to Make a Stacked Bar Chart in Excel: Complete Tutorial

Stacked bar charts in Excel are powerful tools for showing how individual components contribute to a total across categories. Whether you're visualizing sales by product line, budget allocation by department, or survey responses by category, this tutorial walks you through creating professional stacked bar charts in Microsoft Excel.

Interactive How to Make a Stacked Bar Chart in Excel Example

Quarterly Sales by Product Line (Excel Style)

Stacked bar chart showing product line contribution to quarterly totals

Understanding Stacked Bar Charts

A stacked bar chart displays data series stacked horizontally, with each segment representing a portion of the total. Unlike grouped bar charts where bars sit side by side, stacked bars show part-to-whole relationships within each category.

  • Regular Stacked - Shows absolute values, bar lengths vary by total
  • 100% Stacked - All bars equal length, shows proportions/percentages
  • Best for comparing composition across categories
  • Reveals both individual values and totals simultaneously
  • Ideal for 2-5 data series (more becomes hard to read)

Step 1: Prepare Your Data Structure

Excel requires a specific data layout for stacked bar charts. Your data should have categories in the first column and multiple value columns that will become the stacked segments.

  • Column A: Category labels (e.g., Q1, Q2, Q3, Q4)
  • Columns B, C, D...: Value series (e.g., Product A, Product B, Product C)
  • Row 1: Headers for each column (become legend labels)
  • No blank rows or columns within the data range
  • Values must be numeric, not text

Step 2: Select Your Data Range

Click and drag to select all cells containing your data, including headers. For example, if your data spans A1:D5, select that entire range. Excel uses headers for the legend and row labels for categories.

Step 3: Insert the Stacked Bar Chart

With data selected, navigate to Insert > Charts > Bar Chart. In the dropdown, you'll see several stacked options: - **Stacked Bar** - Regular stacked with absolute values - **100% Stacked Bar** - Proportional view where all bars equal 100% - **3-D Stacked Bar** - Adds depth effect (use sparingly) Click your preferred style to insert the chart.

Step 4: Customize Colors and Styles

Excel assigns default colors to each data series. To customize, click on any segment of a specific series, then right-click > Format Data Series. In the Fill section, choose your preferred colors.

  • Use the Chart Styles gallery (paintbrush icon) for quick themes
  • Click individual segments to change specific series colors
  • Maintain color consistency if creating multiple charts
  • Consider colorblind-friendly palettes for accessibility
  • Use brand colors for corporate presentations

Step 5: Add Data Labels

Data labels show exact values on each segment. Click the chart, then click the + icon (Chart Elements) and check Data Labels. Choose label position: Center, Inside End, or Inside Base depending on segment size.

Step 6: Format Axes and Titles

Add context with proper titles and axis formatting. Click Chart Elements (+) to add Chart Title and Axis Titles. Double-click any text element to edit. For the value axis, consider adding thousands separators or currency formatting.

Regular vs 100% Stacked: When to Use Each

Choose the right stacked type based on what story your data tells:

  • Regular Stacked - When absolute values matter and totals vary significantly
  • 100% Stacked - When comparing proportions across categories with different totals
  • Regular shows 'how much' each segment contributes
  • 100% shows 'what percentage' each segment represents
  • Use 100% when comparing composition, not magnitude

Common Issues and Solutions

Troubleshoot frequent problems when creating stacked bar charts in Excel:

  • Segments in wrong order - Rearrange data columns or use Select Data > reorder series
  • Colors too similar - Manually set distinct colors in Format Data Series
  • Labels overlapping - Reduce font size or show labels only for larger segments
  • Legend missing items - Check for hidden columns or filtered data
  • Chart showing columns instead of bars - Change chart type to Bar (horizontal)

Faster Alternative: ChartGen.ai

Creating stacked bar charts in Excel involves multiple steps and manual formatting. ChartGen.ai streamlines this process - paste your data or describe your chart, and AI generates a professionally styled stacked bar chart instantly. Export as PNG with one click.

  • No Excel installation required
  • AI auto-detects stacked data structure
  • Professional color schemes applied automatically
  • Skip 6+ steps of manual configuration
  • Free to use, no account needed

Step-by-Step: How to Create a How to Make a Stacked Bar Chart in Excel

1

Organize Your Data

Set up data with categories in column A and multiple value columns (B, C, D...) for each stack segment. Include headers in row 1.

2

Select Data Range

Click and drag to highlight all cells including headers. Ensure no blank rows or columns within selection.

3

Insert Stacked Bar Chart

Go to Insert > Charts > Bar Chart > Stacked Bar (or 100% Stacked Bar for proportional view).

4

Customize Colors

Click segments to select a series, right-click > Format Data Series > Fill to change colors.

5

Add Labels and Titles

Click + icon next to chart, add Data Labels, Chart Title, and Axis Titles as needed.

6

Export or Copy

Right-click chart > Save as Picture, or copy/paste directly into PowerPoint or Word.

Frequently Asked Questions

What's the difference between stacked bar and stacked column in Excel?
Stacked bar charts are horizontal (bars extend left to right), while stacked column charts are vertical (columns extend bottom to top). Both show the same data, just with different orientations.
How do I change the order of segments in a stacked bar chart?
Click the chart, go to Chart Tools > Design > Select Data. In the Legend Entries list, use the up/down arrows to reorder series. Alternatively, rearrange your source data columns.
Can I show both values and percentages on a stacked bar chart?
Yes, but it requires manual work. Add data labels showing values, then create a secondary calculation column with percentages and add those as a separate label layer, or use custom number formatting.
Why are my stacked bars showing as columns instead?
You likely selected a Column chart instead of Bar chart. Right-click the chart > Change Chart Type > Bar > Stacked Bar to switch to horizontal orientation.
How do I create a stacked bar chart in Excel Online?
The process is similar: select data, Insert > Chart > Bar > Stacked Bar. Some advanced formatting options may be limited compared to desktop Excel.
Is there a faster way than Excel to create stacked bar charts?
Yes, ChartGen.ai creates stacked bar charts instantly from pasted data. No need for Excel, no manual formatting - just paste your data and export a professional chart in seconds.

Related Guides

Start Creating Professional Bar Charts Today

Join thousands of users who create stunning data visualizations with ChartGen.ai. Free to use, no signup required.