With Excel Charts, it is very easy to create Trendlines for your data. Trendlines show which direction the trend of your data is going, and gives you the trajectory as well.
Key Takeaways
-
Visualize Data Trends Instantly – Trendlines help highlight patterns or direction in your charted data, such as upward or downward trends.
-
Supports Multiple Chart Types – You can add trendlines to Line, Column, Bar, and Scatter charts, among others.
-
Choose from Various Trendline Types – Excel offers Linear, Exponential, Logarithmic, Polynomial, Power, and Moving Average trendlines.
-
Customize Your Trendline – You can change the color, line style, and even display the equation or R-squared value on the chart.
-
Easily Accessible from Chart Elements – Just click the chart, use the “+” button (Chart Elements), and check “Trendline” or go to Chart Tools > Add Chart Element > Trendline.
Table of Contents
How to add Trendline in Excel
STEP 1:Highlight your table of data, including the column headings:
Go to Insert > Recommended Charts (Excel 2013 & 2016)
Go to Insert > Line > 2-D Line (Excel 2010)
STEP 2: Select All Charts > Line > OK (Excel 2013 & 2016)
STEP 3: Right-click on the line of your Line Chart and Select Add Trendline.
STEP 4: Ensure Linear is selected and close the Format Trendline Window
Now you have your Trendline in your chart, and you can predict where the trajectory is going in the succeeding periods:
Different types of Trendline
There are different types of trendlines available to be added to the Excel Charts:
- Linear – It is a straight line that shows the increase/decrease in the value of data over time at a steady rate.
- Exponential – It shows the increase/decrease in the value of data at an increasingly higher rate. It is usually more curved on one side.
- Logarithmic – This trendline should be used when the data increase/decrease quickly and then levels out.
- Polynomial – It is a curved line that should be used when data fluctuates more than one rise and fall.
- Moving Average – It is used to smooth the extreme fluctuations of data and show a clearer direction to data trends.
Format the Trendline
Now that you know how to add trendline in Excel, let’s move forward to understand how to format them. You can change the color, transparency, width, dash type, compound type, cap type, and more for your trendline.
In the example below, you want to change the color of the trendline to blue, increase the width to 2.5, and change the dash type.
STEP 1: Right-click on the Trendline.
STEP 2: Select the Format Trendline option.
Or, you can skip STEP 1 & 2 and simply double click on the trendline to open the Format Trendline pane.
STEP 3: From the Format Trendline pane, click the Fill & Line category.
STEP 4: Select color – BLUE
STEP 5: Change the width to 2.5
STEP 6: Change the dash type
Your formatted trendline is ready!
Use Trendline to Forecast Future Data
In Excel, you can extend your data and project the data trend into the future or past using the features of Trendline.
In this example, you want to forecast sales for the next 6 periods. Follow the steps below to understand how to forecast data trends.
STEP 1:Double click on the trendline to open the Format Trendline pane.
STEP 2: Select the Trendline Options tab.
STEP 3: Under forecast, type “6” in the forward box.
Your project data trend for the next 6 periods is created.
You can use trendline to extrapolate the trend of the data into the past. Simply type the period in the backward box instead of the forward box.
Add multiple trendline to same chart
Until now, you have learned how to add trendline in Excel. But you can add multiple trendlines to the same chart. Let’s see how it can be done.
Say, you want to add both linear and moving average trendline to the existing data. Add the first linear trendline as discussed above and then follow the steps below to add another trendline.
STEP 1: Click on the Chart Elements (“+” icon) on the top-right corner of the chart.
STEP 2: Click on the arrow next to Trendline
STEP 3: Select Two Period Moving Average from the list
STEP 4: Select the series SALES.
Excel will show both the trendlines on the same chart.
How to remove trendline in Excel
Removing the trendline in Excel Chart is extremely easy and a quick process. Let’s see how it is done.
STEP 1: Click on the Excel Chart.
STEP 2: Click on the Chart Elements (“+” icon) on the top-right corner of the chart.
STEP 3: From the dropdown, uncheck Trendline.
Or, you could simply right click on the trendline and click on delete.
Frequently Asked Questions
How do I add a trendline to my chart in Excel?
Click on the chart, select the “+” icon next to it, check Trendline, or go to Chart Design > Add Chart Element > Trendline.
Which chart types support trendlines in Excel?
Trendlines can be added to most 2D charts, including Line, Column, Bar, Area, and Scatter charts. They are not available for Pie charts.
What is the purpose of displaying the trendline equation and R-squared value?
The equation represents the mathematical formula of the line, and the R-squared value indicates how well the line fits the data (1.0 = perfect fit).
Can I apply more than one trendline type to a single chart?
Yes, if your chart has multiple data series, you can apply a different trendline type to each series individually.
What’s the difference between a linear and a moving average trendline?
A linear trendline shows a constant rate of increase/decrease, while a moving average smooths out fluctuations to show a more general trend.
Conclusion
In this tutorial, you have covered how to add trendline in Excel, the different types of trendlines, formatting the trendline, extending the trendline into future or past periods, adding multiple trendlines to the same chart, and finally how to remove them.
Bryan
Bryan Hong is an IT Software Developer for more than 10 years and has the following certifications: Microsoft Certified Professional Developer (MCPD): Web Developer, Microsoft Certified Technology Specialist (MCTS): Windows Applications, Microsoft Certified Systems Engineer (MCSE) and Microsoft Certified Systems Administrator (MCSA).
He is also an Amazon #1 bestselling author of 4 Microsoft Excel books and a teacher of Microsoft Excel & Office at the MyExecelOnline Academy Online Course.