Excel Add Line to Bar Chart (4 Ideal Examples)

 

Adding a Bar Chart

To add a line to the bar chart, we will prepare a dataset with a bar chart first.

  • Insert months and profit amount in columns B and C respectively.

Excel Add Line to Bar Chart

  • Select the whole dataset.
  • Go to Column Charts from the Charts section in the Insert tab.

Excel Add Line to Bar Chart

  • Select any type of bar chart you want in your datasheet.

Excel Add Line to Bar Chart


Example 1 – Add a Line to Bar Chart with the AVERAGE Function

  • Insert the AVERAGE function below inside cell D5 and copy that to the cell range D6:D10.
=AVERAGE($C$5:$C$10)

Excel Add Line to Bar Chart with AVERAGE Function

  • Select the whole dataset including the average amount.

  • Select Recommended Chart from the Charts section in the Insert tab.

Excel Add Line to Bar Chart with AVERAGE Function

  • This will open an Insert Chart window.
  • Go to Combo from the All Charts section, select Clustered Column- Line, and press OK.

Excel Add Line to Bar Chart with AVERAGE Function

  • You can see that a line is shown in the bar chart defining the average amount of profit.

Read More: How to Add Horizontal Line to Bar Chart in Excel


Example 2 – Use the Excel MEDIAN Function to Add a Line

  • Insert the MEDIAN function below in cell D5 and copy it to the cell range D6:D10.
=MEDIAN($C$5:$C$10)

Use Excel MEDIAN Function to Add Line

  • Insert a Clustered Column- Line and press OK.

  • You can see a line in the bar chart representing the Median Number.

Use Excel MEDIAN Function to Add Line

Read More: Excel Bar Chart with Line Overlay


Example 3 – Add a Line to a Bar Chart as the Target Line

  • Set up a number as the target value in the dataset and select the whole dataset.

Add Line to Bar Chart as Target Line

  • Create a bar chart.

  • Right-click on the chart and select Change Chart Type.

Add Line to Bar Chart as Target Line

  • In the new window, go to Combo from the All Charts section and select Custom Combination.
  • Press OK.

Add Line to Bar Chart as Target Line

  • You can see a line in the bar chart as the target line.

Add Line to Bar Chart as Target Line

Another process to add a line to a bar chart as a target line is illustrated below:

  • Create a bar chart with the initial dataset, except for the target amount.

  • Right-click on the chart and press on Select Data.

Add Line to Bar Chart as Target Line

  • Select Add from the Legend Entries (Series) section.

Add Line to Bar Chart as Target Line

  • In the Edit Series window, insert the series name as Target Line and insert the series value in cell range D5:D10 from the dataset except for the header.

Add Line to Bar Chart as Target Line

  • Press OK twice.

  • Repeat the process discussed initially in this example and you will successfully add a line to the bar chart as the target line.
  • You can also add a target line with different values.

Read More: How to Create Bar Chart with Target Line in Excel


Example 4 – Add a Vertical Line to a Bar Chart

  • Create a dataset with the information on profit, target, and average for the first half months of a year.

Excel Add Vertical Line to Bar Chart

  • Create a horizontal bar chart with the dataset of cell range B4:D10.

  • Click on the chart and make the Series Overlap value 100% from the Format Data Series.

  • Select cell range E4:E10, press Ctrl + 1, and select the outer line of the chart like this:

Excel Add Vertical Line to Bar Chart

  • Go to the Home tab and select Paste Special from the Clipboard section.

  • Mark the options in the Paste Special window just like this:

  • Press OK. The bar chart now looks like this.

Excel Add Vertical Line to Bar Chart

  • Click on the average bar and put it in the Secondary Axis from the editing panel.

  • Select Trendline from the Chart Elements section.

  • We have our vertical line in the bar chart.

Excel Add Vertical Line to Bar Chart

  • After some customization, it looks like this.

Excel Add Vertical Line to Bar Chart

Read More: How to Add Vertical Line to Excel Bar Chart


How to Customize the Added Line in Excel Bar Chart

  • Select the chart and press Ctrl + 1. It will open a new Format Chat Area panel on the right side.
  • In this section, you will get numerous options to edit the line along with the chart.

  • You can change the size, color, or type of the line. You can add texts if you need them.
  • You can also format the bar chart from its right-side options.


Download the Practice Workbook


Related Articles


<< Go Back to Excel Bar ChartExcel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Sanjida Mehrun Guria
Sanjida Mehrun Guria

Hello! Welcome to my blog. I have completed my Bachelor in Architecture from Ashanullah University of Science & Technology, Dhaka. I am a passionate, goal-oriented person with an immense thirst for knowledge and an attitude to grow continuously. Besides Architectural work, I find it very enthusiastic to work in Excel blogging. Exceldemy is a platform where I have got the opportunity to flourish my skill in Microsoft Excel and therefore, here I will be posting blogs related to... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo