Take the following steps to add trendline to a chart:
- Click on the chart. The Chart Tools, adding the Design, Layout, and Format tabs appears.
- On the Layout tab, in the Analysis group, click Trendline.
- Click More Trendline Options, and then in the Trendline Options category, under Trend/Regression Type, click the type of trendline. Select Moving Average and type the number of periods to use to calculate the moving average in the Period box.
