Charts

Add a trend or moving average line to a chart

Add a trendline to your chart to show visual data trends.

 

Add a trendline

Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.
  1. Select a chart.

  2. Select the + to the top right of the chart.

  3. Select Trendline.

    Note: Excel displays the Trendline option only if you select a chart that has more than one data series without selecting a data series.

  4. In the Add Trendline dialog box, select any data series options you want, and click OK.

Format a trendline

  1. Click anywhere in the chart.

  2. On the Format tab, in the Current Selection group, select the trendline option in the dropdown list.

  3. Click Format Selection.

  4. In the Format Trendline pane, select a Trendline Option to choose the trendline you want for your chart. Formatting a trendline is a statistical way to measure data:Trendlines

  5. Set a value in the Forward and Backward fields to project your data into the future.

Add a moving average line

You can format your trendline to a moving average line.

  1. Click anywhere in the chart.

  2. On the Format tab, in the Current Selection group, select the trendline option in the dropdown list.

  3. Click Format Selection.

  4. In the Format Trendline pane, under Trendline Options, select Moving Average. Specify the points if necessary.

    Note: The number of points in a moving average trendline equals the total number of points in the series less the number that you specify for the period.

Add a trendline

  1. On the View menu, click Print Layout.

  2. In the chart, select the data series that you want to add a trendline to, and then click the Chart Design tab. 

    For example, in a line chart, click one of the lines in the chart, and all the data marker of that data series become selected.

    Chart Design tab

  3. On the Chart Design tab, click Add Chart Element, and then click Trendline.

    Add a trendline

  4. Choose a trendline option or click More Trendline Options.

    You can choose from the following:

    • Exponential

    • Linear

    • Logarithmic

    • Polynomial

    • Power

    • Moving average

    You can also give your trendline a name and choose forecasting options.

Remove a trendline

  1. On the View menu, click Print Layout.

  2. Click the chart with the trendline, and then click the Chart Design tab.

    Chart Design tab

  3. Click Add Chart Element, click Trendline, and then click None.

    You can also click the trendline and press DELETE .

Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.
  1. Click anywhere in the chart to show the Chart tab on the ribbon.

  2. Click Format to open the chart formatting options.Excel for the web Chart Format

  3. Open the Series you want to use as the basis for your Trendline Trendline for Excel for the web

  4. Customize the Trendline to meet your needs.

  5. Use the switch to show or hide the trendline.

Important: Beginning with Excel version 2005, Excel adjusted the way it calculates the R2 value for linear trendlines on charts where the trendline intercept is set to zero (0). This adjustment corrects calculations that yielded incorrect Rvalues and aligns the R2 calculation with the LINEST function. As a result, you may see different R2 values displayed on charts previously created in prior Excel versions. For more information, see Changes to internal calculations of linear trendlines in a chart. 

Need more help?

You can always ask an expert in the Excel Tech Community or get support in Communities.

See Also

Trendline options in Office

Create a chart from start to finish

Format elements of a chart

Add data labels to a chart

Get Microsoft chart templates

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.