How To Add Trendline In Excel

Oct 27, 2020 • edited Oct 30, 2020

How To Add Trendline In Excel

This example teaches you how to add a trendline to a chart in Excel.

1. Select the chart.

2. Click the + button on the right side of the chart, click the arrow next to Trendline and then click More Options.

Add Trendline

The Format Trendline pane appears.

3. Choose a Trend/Regression type. Click Linear.

4. Specify the number of periods to include in the forecast. Type 3 in the Forward box.

5. Check "Display Equation on chart" and "Display R-squared value on chart".

Format Trendline

Result:

Trendline in Excel

Explanation: Excel uses the method of least squares to find a line that best fits the points. The R-squared value equals 0.9295, which is a good fit. The closer to 1, the better the line fits the data. The trendline predicts 120 sold wonka bars in period 13. You can verify this by using the equation. y = 7.7515 * 13 + 18.267 = 119.0365.

#Tutorial#How To#Data Analysis#Charts

How to Use VLOOKUP function find Closest Match In Excel

How To Create a Pareto Chart In Excel