How to Add Average Line to Scatter Plot in Excel (3 Ways)

In a Scatter Plot where the data shows little correlation, adding an average line creates a useful yardstick. Suppose we have inserted a Scatter Plot of the highlighted data in an Excel Worksheet like in the image below.

Dataset-Add Average Line to Scatter Plot Excel

Let’s add an average line to it, using 3 different methods.


Method 1 – Adding a Moving Average Line

We’ll use a Horizontal Line, as our desired data is on the Y-Axis.

Steps:

  • Click inside the Chart area.
  • From the side options that appear, click on the Plus Icon > Arrow Sign beside Trendline > More Options.

Moving Average-Add Average Line to Scatter Plot Excel

The Format Trendline side window appears.

  • Select Moving Average as Trendline Options.
  • Change the Period values to best fit your data. Here, as the dataset is comparatively small, a minimum period value of 2 is chosen.

Period-2

Excel inserts a Moving Average Line maintaining the average value of each two consecutive values serially.

Moving Average Trendline

Read More: How to Add Line to Scatter Plot in Excel


Method 2 – Using Error Bars

Suppose we change the source data to a comparatively correlated data type, such as Total Sales. We want to add a Horizontal Average Line to the Chart.

Correlated Data-Add Average Line to Scatter Plot Excel

Step 1:

Average Value

Step 2:

  • Right-click within the plot area.
  • From the Context Menu, click on Select Data.

Select Data

Step 3:

Excel opens up the Select Data Source window.

  • Click on Add under Legend Entries.

Add a Data Source

Step 4:

  • In the Edit Series dialog box that opens, assign the respective values as shown in the screenshot below.

Assigning Data Source

Step 5:

Excel adds a new Data Source named Average Values.

  • Click on OK.

New Data Source-Add Average Line to Scatter Plot Excel

Step 6:

  • Click within the Chart.

The side options appear.

  • Click on the Plus Icon > Arrow beside the Error Bars > More Options.

Data Bars

Step 7:

Excel fetches the Add Error Bars.

  • Click on Average Values, then OK.

Selecting New Data Source

Step 8:

The Format Error Bars side window appears.

  • Click Arrow beside Error Bar Options > Series “Average Values” X Error Bars (choose Series “Average Values” Y Error Bars if your desired values are on the X-Axis).

Inserting Horizontal Line

Step 9:

  • In the Format Error Bars window, mark the Percentage under Error Amount.
  • Enter 100 in the value box.
  • Choose other options such as Direction, End Style, etc., as desired.

Error Percentage

Excel inserts an Average Line as depicted below.

Average Error Line--Add Average Line to Scatter Plot Excel

Read More: How to Add Data Labels to Scatter Plot in Excel


Method 3 – Using Two Points

We can insert a data source of two average points in the Chart and then connect them to make an average line. Finding the average points using the AVERAGE function is similar to the previous method. Just add an extra point by assigning the X-Axis values to 0 and the Y-Axis to the average.

Step 1:

The result is the two points needed to insert a line connecting them.

Average Line-Add Average Line to Scatter Plot Excel

Step 2:

  • Click on the Chart Plot area, and the side options appear.
  • Click on the Plus Icon > Arrow beside the Trendline > More Options.

Trendline

Step 3:

The Add Trendline window appears.

  • In the window, click on Average Line Values > OK.

Add Trendline

Step 4:

  • The Format Trendline side window appears.
  • In the window, mark Linear as Trendline Options.

For clarity purposes, the Linear Trendline option is selected from the Format Trendline side window; it can also be accessed from the Trendline options in the previous step.

Linear Trendline

Excel inserts an Average Line as shown in the below image.

Average Line Connecting Two Points

We can further extend the average line by inserting more points.


Download Excel Workbook


Related Articles


<< Go Back To Edit Scatter Chart in ExcelScatter Chart in Excel | Excel ChartsLearn Excel

Get FREE Advanced Excel Exercises with Solutions!
Maruf Islam
Maruf Islam

MARUF ISLAM is an excellent marine engineer who loves working with Excel and diving into VBA programming. For him, programming is like a superhero tool that saves time when dealing with data, files, and the internet. His skills go beyond the basics, including ABACUS, AutoCAD, Rhinoceros, Maxsurf, and Hydromax. He got his B.Sc in Naval Architecture & Marine Engineering from BUET, and now he's switched gears, working as a content developer. In this role, he creates techy content... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo