How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (2025)

What is a Stacked Bar Chart?

Astacked bar chartis a type of bar chart that displays multiple data points on top of each other within the same bar. This allows you to compare the total values across different categories as well as the individual components that make up those totals.

Here’s a breakdown of its key features:

  • Primary Categorical Variable: Each bar represents a category of the primary variable.
  • Secondary Categorical Variable: Each bar is divided into segments that represent different subcategories of the secondary variable.
  • Comparison: You can compare both the total length of the bars (overall totals) and the individual segments within each bar (subcomponent contributions).

Method 1 – Create a Stacked Bar Chart with a Line Chart

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (1)

  • Select the range of cells B6 to E12.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (2)

  • Go to the Insert tab in the ribbon.
  • From the Charts group, select the Recommended Chartsoption.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (3)

  • In the Insert Chart dialog box, choose the Stacked Bar chart.
  • Click OK to generate the chart.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (4)

  • It will give us the following result.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (5)

  • If you want to change the Chart Style, click on the Brush sign on the right side of the chart and select your preferred chart style.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (6)

  • You will get the following stacked bar chart.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (7)

Create the Line Chart:

  • Add a new column to your dataset (cell F6).

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (8)

  • In cell F6, calculate the average sales amount for the three months using the AVERAGE function:

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (9)

  • Press Enter.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (10)

  • Drag the Fill Handle down the column to apply the formula.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (11)

  • Right-click on the stacked bar chart and choose Select Data.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (12)

  • In the Select Data Source dialog box, click Add from the Legend Entries (Series) section.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (13)

  • Set the Series name and select the newly created column reference for the Series values.
  • Click OK.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (14)

  • The Select Data Source box will appear again, click OK.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (15)

  • The stacked bar chart will be regarded as a standard bar chart, creating an additional bar for this column.
  • You will get the following result after adding a new series.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (16)

  • Right-click on any of the bars and choose Change Series Chart Type.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (17)

  • Set all series as stacked bars, except for the Average series, which should be changed to a line chart.
  • Click OK.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (18)

  • The stacked bar chart with a line chart will be created.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (19)

  • Format the axis for a better view.
    • Double-click on the right of the chart axis.
    • It will open up the Format Axis dialog box.
    • Set the Minimum value for your axis.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (20)

  • This will give you the required stacked bar chart with a line.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (21)

Read More:How to Create Stacked Bar Chart for Multiple Series in Excel

Method 2 – Create a Stacked Bar Chart with Series Lines

In this method, we’ll join the series points to create lines within the stacked bar chart.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (22)

Steps

  • Create the Stacked Bar Chart with Series Lines:
    • Select the range of cells B6 to E12.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (23)

    • Go to the Insert tab in the ribbon.
    • From the Charts group, choose the Recommended Charts option.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (24)

    • In the Insert Chart dialog box, select the Stacked Bar chart.
    • Click OK to generate the chart.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (25)

It will give us the following result.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (26)

    • If you want to change the Chart Style, click the Brush sign on the right side of the chart and select your preferred style.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (27)

  • We get the following result.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (28)

  • Add Series Lines:
    • Click anywhere on the chart to open the Chart Design option on the ribbon.
    • Select the Chart Design option.
    • From the Chart Layouts group, choose the Add Chart Element drop-down.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (29)

    • Select Lines.
    • From the Lines section, choose Series Lines.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (30)

    • This will automatically create a series of lines on your chart.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (31)

    • To change the series lines’ color, click on the lines and use the Format option on the ribbon.
    • To change the series lines color, click on the lines.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (32)

    • You can select your preferred theme from the Theme Styles options.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (33)

    • You will get your required stacked bar chart with series lines.

How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (34)

Read More: How to Create Stacked Bar Chart with Dates in Excel

Things to Remember

  • To create a stacked bar chart with a line chart, add an extra column for the line chart.
  • Utilize a combo chart where one column represents the line chart and the others represent the stacked bar chart.

Download Practice Workbook

You can download the practice workbook from here:

Stacked Bar Chart with Line.xlsx

Related Articles

  • How to Make a Stacked Bar Chart in Excel
  • Excel Stacked Bar Chart with Subcategories
  • How to Create Stacked Bar Chart with Negative Values in Excel
  • How to Plot Stacked Bar Chart from Excel Pivot Table
  • How to Create Bar Chart with Multiple Categories in Excel
  • How to Ignore Blank Cells in Excel Bar Chart

<< Go Back to Stacked Bar Chart in Excel |Excel Bar Chart |Excel Charts|Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
How to Create a Stacked Bar Chart with a Line in Excel (2 Methods) - ExcelDemy (2025)

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Sen. Emmett Berge

Last Updated:

Views: 6530

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Sen. Emmett Berge

Birthday: 1993-06-17

Address: 787 Elvis Divide, Port Brice, OH 24507-6802

Phone: +9779049645255

Job: Senior Healthcare Specialist

Hobby: Cycling, Model building, Kitesurfing, Origami, Lapidary, Dance, Basketball

Introduction: My name is Sen. Emmett Berge, I am a funny, vast, charming, courageous, enthusiastic, jolly, famous person who loves writing and wants to share my knowledge and understanding with you.