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

A stacked bar chart can be defined as a chart that shows a comparison between the data. It has a unique ability to compare parts of a whole.

Method 1 – Create the Stacked Bar Chart with Line Chart

  • Select the range of cells B6 to E12.

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

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

  • It will give us the following result.

Excel Stacked Bar Chart with Line

  • 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.

Excel Stacked Bar Chart with Line

  • You will get the following stacked bar chart.

Excel Stacked Bar Chart with Line

Create the Line Chart:

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

  • In cell F6, calculate the average sales amount for the three months using the AVERAGE function:
=AVERAGE(C6:E6)

  • Press Enter.

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

Excel Stacked Bar Chart with Line

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

Excel Stacked Bar Chart with Line

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

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

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

  • 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.

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

Excel Stacked Bar Chart with Line

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

Excel Stacked Bar Chart with Line

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

Excel Stacked Bar Chart with Line

  • 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.
  • Then, set the Minimum value for your axis.

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

Excel Stacked Bar Chart with Line

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


Method 2 – Create Stacked Bar Chart with Series Lines

In this example, we’ll join the series points to create lines within the stacked bar chart. Follow these steps carefully:

Steps

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

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

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

It will give us the following result.

Excel Stacked Bar Chart with Line

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

Excel Stacked Bar Chart with Line

  • Finally, we get the following result.

Excel Stacked Bar Chart with Line

  • 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.

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

Excel Stacked Bar Chart with Line

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

Excel Stacked Bar Chart with Line

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

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

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

Excel Stacked Bar Chart with Line

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:


Related Articles


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

Get FREE Advanced Excel Exercises with Solutions!
Durjoy Paul
Durjoy Paul

Durjoy Kumar, with a BSc in Naval Architecture & Engineering from Bangladesh University of Engineering and Technology, is a dedicated contributor to the ExcelDemy project. His substantial contributions include crafting numerous articles and demonstrating expertise in Excel and VBA. Durjoy adeptly automates Excel challenges using VBA macros, offering valuable solutions for user interface challenges. Apart from creating Excel tutorials, he is interested in Data Analysis with MS Excel, SPSS, C, C++, C#, JavaScript, Python Web Scraping, Data Entry... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo