# How to add a trend line on a chart

Looking for Office steps?

Select Trendline. In the Add Trendline dialog box, select any data series options you want, and click OK. Format a trendline Click anywhere in the chart. On the Format tab, in the Current Selection group, select the trendline option in the dropdown list. Click Format Selection.

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: 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. Click anywhere in the chart. Specify the points if necessary.

• Training turbo options
• Power Moving Average Here is a good article that explains what these trend lines are and when to use these.
• Options strategy 2020
• How to add trendline in Excel chart

Add a trend or moving average line to a chart in Office Add a trendline Office On an unstacked, 2-D, area, bar, column, line, stock, xy scatteror bubble chart, click the data series to which you want to add a trendline or moving average, or do the following to select the data series from a list of chart elements: Click anywhere in the chart. On the Format tab, in the Current Selection group, click the arrow next to the Chart Elements box, and then click the chart element that you want.

## How to add trendline in Excel chart

In the list box, click the data series that you want, and then click OK. On the Layout tab, in the Analysis group, click Trendline.

How to remove a trendline from a chart Trendline in Excel A trendline, also referred to as a line of best fit, is a straight or curved line in a chart that shows the general pattern or overall direction of the data.

Do one of the following: Click a predefined trendline option that you want to use. Use this type To create Linear A linear trendline by using the following equation to calculate the least squares fit for a line: where m is the slope and b is the intercept.

Logarithmic A logarithmic trendline by using the following equation to calculate the least squares fit through points: where c and b are constants, and ln is the natural logarithm function. Polynomial A polynomial or curvilinear trendline by using the following equation to calculate the options reviews icyu squares fit through points: where b and are constants.

Power A power trendline by using the following equation to calculate the least squares fit through points: where c and b are constants. Exponential An exponential trendline by using the following equation to calculate the least squares fit through points: where c and b are constants, and e is the base of the natural logarithm. R-squared value A trendline that displays an R-squared value on a chart by using the following equation: This trendline option is available on the Options tab of the Add Trendline or Format Trendline dialog box.

For logarithmic, power, and exponential trendlines, Excel uses a transformed regression model. If you select Polynomial, type the highest power for the independent variable in the Order box. If you select Moving Average, type the number of periods that you want to use to calculate the moving average in the Period box.

### Need more help?

If you add a moving average to an xy scatter chart, the moving average is based on the order of the x values plotted in the chart. To get the result that you want, you might have to sort the x values how to add a trend line on a chart you add a moving average. If you add a trendline to a line, column, area, or bar chart, the trendline is calculated based on the assumption that the x values are 1, 2, 3, 4, 5, 6, etc.

This assumption is made whether the x-values are numeric or text.

### You May Also Like

To base a trendline on numeric x values, you should use an xy scatter chart. Excel automatically assigns a name to the trendline, but you can change it.

Tips: You can also create a moving average, which smoothes out fluctuations in data and shows the pattern or trend more clearly. On an unstacked, 2-D, area, bar, column, line, stock, xy scatteror bubble chart, click the trendline that you want to change, or do the following to select it from a list of chart elements.

## How to add Trendline in Excel Charts

To change the color, style, or shadow options of the trendline, click the Line Color, Line Style, or Shadow category, and then select the options that you want. To specify the number of periods that you want to include in a forecast, under Forecast, click a number in the Forward periods or Backward periods box.

To display the trendline equation on the chart, select the Display Equation on chart check box.

However, you can change the number of digits for a selected trendline label in the Decimal places box on the Number tab of the Format Trendline Label dialog box. Format tab, Current Selection group, Format Selection button. On an unstacked, 2-D, area, bar, column, line, stock, xy scatteror bubble chart, click the trendline for which you want to display the R-squared value, or do the following to select the trendline from a list of chart elements: Click anywhere in the chart.

On the Trendline Options tab, select Display R-squared value on chart.