To create a stacked chart in Excel, select your data range including headers, go to Insert > Charts, and choose a stacked column or bar chart. Excel will plot each series stacked on top of the previous one, showing both the total and the contribution of each category. The steps below walk through preparing your data, inserting the chart, formatting it, and fixing the most common problems.
What You'll Need
- Excel for Windows, Mac, or Excel for the web. The ribbon labels are similar across versions, but exact wording can differ slightly by version, device, or region.
- Data arranged in a grid: one row or column for category labels, and one column or row per series you want stacked.
- Numeric values only in the series columns. Text, blanks, or error values in those cells will cause gaps or unexpected results.
Step-by-Step
- Lay out your data correctly. Put your category labels in the first column (for example, months or product names) and each series in its own column to the right. Add a header row with clear series names. Do not leave blank rows or columns inside the data range.
- Select the entire range, including headers. Click the top-left cell of your data and drag to the bottom-right, or press Ctrl+A (Windows) or Command+A (Mac) with a cell inside the range selected. Including headers lets Excel name the series and categories automatically.
- Insert the chart. Go to the Insert tab, find the Charts group, and click the stacked chart icon. Choose Stacked Column for vertical bars or Stacked Bar for horizontal bars. If you are unsure which icon is which, hover over it to see the tooltip.
- Check the result. Excel should place the chart on the sheet with categories along the bottom axis and each series stacked in a different color. If the chart looks wrong (for example, categories appear as series), continue to the troubleshooting section.
- Switch row and column if needed. If your series and categories are swapped, select the chart, go to Chart Design (called Chart Design or Design depending on version), and click Switch Row/Column.
- Add or fix series names. Right-click the chart and choose Select Data. In the dialog, you can edit each series name, add new series, or remove unwanted ones. Use the Edit button under Horizontal (Category) Axis Labels to point at the correct label range.
- Format the chart. Use the plus button next to the chart (or the Add Chart Element button on the ribbon) to turn on or off chart elements such as Legend, Data Labels, and Axis Titles. Click any element to edit its text.
- Adjust colors and gaps. Click a stacked segment once to select the series, then right-click and choose Format Data Series. You can change the fill color and, under Series Options, adjust the gap width between category groups.
- Add data labels if useful. With the chart selected, use the plus button and tick Data Labels. For stacked charts, labels inside each segment can get crowded; consider showing only totals by adding a separate total series or using a line chart overlay.
- Move or resize the chart. Drag the chart border to move it, or drag a corner handle to resize. To place it on its own sheet, right-click the chart and choose Move Chart, then pick New Sheet.
Common Mistakes
- Including totals as a series. If your data already has a Total column, stacking it will double the height of every bar. Remove the total column from the chart range or use a separate total label instead.
- Leaving blank cells inside the range. Blanks can make Excel treat a row as a gap or misalign categories. Fill or remove blank rows before charting.
- Mixing text and numbers. A text value in a numeric column will be ignored or plotted as zero. Check that all series cells are numbers.
- Selecting only part of the data. If you select only the numbers and not the headers, Excel will name series Series1, Series2, and so on. Reselect including headers.
- Using a 100% stacked chart by accident. A 100% stacked chart shows proportions, not absolute values. If your totals look like they all reach the same height, you picked the wrong subtype.
Tips
- Keep series to a manageable number (roughly five to seven). Too many stacks make the chart hard to read; combine small categories into an Other series.
- Use a stacked column chart when comparing totals across categories, and a stacked bar chart when category labels are long.
- Sort your categories in a meaningful order (for example, by total size) rather than alphabetically, so the chart tells a clearer story.
- If you need to show both the total and the individual parts, add a total series as a line chart on a secondary axis, or place a total label above each stack.
- Press F11 (Windows) to create a chart on a new sheet instantly from the selected range; on Mac, use the ribbon or the Chart menu.
Troubleshooting
- The chart is empty or shows only one series. Check that your range includes all series columns and that the cells contain numbers. Use Select Data to confirm each series range.
- Categories are numbers (1, 2, 3) instead of labels. Excel did not pick up your label column. Open Select Data and set the Horizontal (Category) Axis Labels to your label range.
- Bars are stacked in the wrong order. The stacking order follows the series order in Select Data. Reorder series there, or right-click a series and use Select Data to move it up or down.
- Some segments are missing. A zero or blank value produces no visible segment. That is normal; if you expected a value, check the source cell.
- The chart does not update when data changes. Confirm the chart's range still covers the cells. If you added rows, either extend the range manually via Select Data or convert your data to an Excel Table (Insert > Table) before charting so the chart expands automatically.
- Labels overlap. Reduce the number of data labels, rotate axis labels, or increase the chart size. For crowded category labels, switch to a bar chart, which gives more room.
Frequently Asked Questions
What is the difference between a stacked chart and a 100% stacked chart?
A stacked chart shows absolute values, so the total height varies by category. A 100% stacked chart shows each series as a percentage of the total, so every stack reaches the same height. Use the 100% version when comparing proportions rather than amounts.
Can I create a stacked chart in Excel for the web?
Yes. Excel for the web supports stacked column, bar, and area charts through the Insert tab. Some advanced formatting options are limited compared with the desktop app, but the basic chart types and Select Data dialog are available.
How do I add a total label on top of each stack?
Excel does not add stack totals automatically. The simplest approach is to add a helper column with the row totals, add it as a separate series, then change that series to a line chart or use data labels positioned above the stack. Alternatively, type totals as text boxes, though they will not update automatically.
Why does my stacked chart show negative values going downward?
Negative values in a stacked chart are plotted below the axis, which can make the stack look confusing. If negatives are not meaningful for your data, check for data entry errors. If they are meaningful, consider a clustered chart instead, since stacked charts handle negatives poorly.
Can I stack a line chart on top of a column chart?
You can combine chart types using Combo Chart (Insert > Combo Chart). However, a line series is not stacked with columns in the same way; it is plotted on its own axis. For true stacking, stick to column, bar, or area chart subtypes.