Add a trendline to chart data in Excel

Add a trendline to chart data in Excel
Page content

As shown in Fig. 1098, I can see from the chart that I am not working on track to meet the goal. However, my question is: What would happen if I continued to work at my current pace? By how much would I miss the goal on 1 December?

Excel makes it easy to add a trendline to charted data.

  1. Right-click the graphed line for actual results. From the menu that appears, choose Add Trendline…, as shown in Fig. 1099.

  2. In the Add Trendline dialog, you can accept the defaults, as shown in Fig. 1100. Click OK.

A trendline is added. Other than being straight, it looks very much like the line that it is based on. As shown in Fig. 1101, the line tells me that I will only be around 200 at my current pace.

  1. Since the trendline is only a forecast, I like to format it with a dotted style so that I know it is just a prediction. Right-click the trendline and choose Format Trendline…, as shown in Fig. 1102.
  1. Choose a thin weight in red and a dotted style, as shown in Fig. 1103.

The result in Fig. 1104 is a dotted line showing the predicted results if you continue at your current pace.

As you continue to plug in actual data, the trendline will redraw. After seeing the above chart, I was nervous about missing my goal and really put it into hyperdrive for the next few days. Even though the Actual line is above the Track line, the dotted trendline is still predicting I will miss the goal. That is because the trendline sees all of those days between 10/30 and 11/5 where I did nothing, as shown in Fig. 1105. It can predict that those days might happen again.

My reaction was to continue working at a pace to finish the project ahead of schedule. Finally, the red trendline acknowledged that I might beat the schedule, as shown in Fig. 1106.

Right-click the trendline and choose Format Trendline. On the Options tab, you can choose to display the equation on the chart, as shown in Fig. 1107.

See all Microsoft Excel tips


Fig. 1099

Fig. 1100

Fig. 1101

Fig. 1102

Fig. 1103

Fig. 1104

Fig. 1105

Fig. 1106

Fig. 1107

Fig. 1108