How to Add Trendline in Excel Online (with Easy Steps)

In this article, we will explain how to add a trendline in Excel Online.

A trendline is a straight or curved line on an Excel chart that indicates the main pattern or direction of the data. It is an analytical tool, typically used to illustrate data changes over time or the relationship between two variables.

To explain the procedure, we’ll use the dataset below containing Months and Sales to make a chart, then add a trendline.

5 Steps to Add Trendline in Excel Online


Step 1 – Inserting a Chart

First, we’ll insert a chart for the dataset.

  • Select the dataset.

Inserting Chart

  • Go to the Insert tab.
  • Select the Insert Chart option.

  • Select the Line with Marker option from the drop-down.

Inserting Chart

A line chart is inserted into your worksheet.

Inserting Chart

Let’s format the chart:

  • Right-click on the chart.
  • Select Format.

The Chart Format option will appear on the right side of the screen.

  • Select Chart Title.

Inserting Chart

  • Enter a title for your chart.
  • Format the title as you like, for instance make it bold.

  • Select Series 1.

Inserting Chart

  • Change the Series Name as you like.
  • Select Outline to change the color of the chart.

A list of colors will be presented.

  • Select the color you want.

Inserting Chart

Our chart looks something like this:


Step 2 – Adding a Trendline in Excel Online

Now we’ll add a trendline to our chart.

  • Right-click on the line of the chart.
  • Select Format.

Adding Trendline in Excel Online

The Chart Format option will appear on the right side of the screen.

  • Select Add Trendline 1.

The options for the Trendline are displayed.

  • Select the Trend type. Here, Linear.

Adding Trendline in Excel Online

A linear trendline is added to the line chart.

Read More: How to Add Trendline Equation in Excel


Step 3 – Formatting the Trendline

Now we format the trendline.

  • Right-click on the trendline.
  • Select Format.

The Chart Format option will appear on the right side of the screen.

  • Select Outline to change the color.

Formatting Trendline in Excel Online

A list of colors will appear.

  • Select a color for your trendline.

We have a lovely red dotted trendline.

Formatting Trendline in Excel Online


Step 4 – Using the Trendline to Forecast Future Data

In addition to showing past trends, we can use our trendline to forecast future data.

  • Right-click on the trendline.
  • Select Format.

The Chart Format option will appear on the right side of the screen.

  • Select a Forward period, the number of months into the future to Forecast.

Using Trendline in Excel Online to Forecast Future Data

The trendline now includes a forecast of future data for the next month.

Using Trendline in Excel Online to Forecast Future Data

Read More: How to Create Monthly Trend Chart in Excel


Step 5 – Adding Multiple Trendlines

We’ll now explain how to add multiple trendline in Excel Online.

  • Right-click on the trendline.
  • Select Format.

Adding Multiple Trendlines in Excel Online

The Chart Format option will appear on the right side of the screen.

  • Select Add Trendline 2.

  • Select a Trend Type, for example Moving Average.

Another trendline is added to the line chart.

Adding Multiple Trendlines in Excel Online

We have successfully added trendlines in Excel Online. The final output looks like this:

Adding Multiple Trendlines in Excel Online


Things to Remember

  • If you use more than 1 trendline, use different colors for each trendline for better visualization.

Download Practice Workbook


Related Articles


<< Go Back To Add a Trendline in Excel | Trendline in Excel | Excel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mashhura Jahan
Mashhura Jahan

Mashhura Jahan, BSc in Industrial and Production Engineering from Bangladesh University of Engineering and Technology, invested 1.5 years at ExcelDemy. In roles like Excel & VBA Content Developer, Excel Charts, and Dashboard course trainer, she wrote 90+ articles. She was previously part of the forum support team and a junior software analyst on the Excel Add-in project. With interests spanning Excel, VBA, Power Query, Python, Data Science, and Software Development, Mashhura brings a diverse skill set to her... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo