Table of Contents

Trendline

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 in Excel

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 in Excel

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 that 120 Wonka bars will be sold in period 13. You can verify this by using the equation: y = 7.7515 * 13 + 18.267 = 119.0365.

6. Instead of using this equation, you can use the FORECAST.LINEAR function in Excel. This function predicts the same future values.

Linear Trend in Excel

7. The FORECAST.ETS function in Excel predicts a future value using Exponential Triple Smoothing, which takes into account seasonality.

Seasonal Pattern in Excel

Leave A Comment

Excel meets AI – Boost your productivity like never before!

At Formulas HQ, we’ve harnessed the brilliance of AI to turbocharge your Spreadsheet mastery. Say goodbye to the days of grappling with complex formulas, VBA code, and scripts. We’re here to make your work smarter, not harder.

Related Articles

The Latest on Formulas HQ Blog