Add a trend or moving average line to a chart (2024)

Add a trendline

Add a trend or moving average line to a chart (1)
  1. Select a chart.

  2. Select the + to the top right of the chart.

  3. Select Trendline.

    Note:Excel displays the Trendline option only if you select a chart that has more than one data series without selecting a data series.

  4. In the Add Trendline dialog box, select any data series options you want, and click OK.

Format a trendline

  1. Click anywhere in the chart.

  2. On the Format tab, in the Current Selection group, select the trendline option in the dropdown list.

  3. Click Format Selection.

  4. In the Format Trendline pane, select a Trendline Option to choose the trendline you want for your chart. Formatting a trendline is a statistical way to measure data:
    Add a trend or moving average line to a chart (2)

  5. Set a value in the Forward and Backward fields to project your data into the future.

Add a moving average line

You can format your trendline to a moving average line.

  1. Click anywhere in the chart.

  2. On the Format tab, in the Current Selection group, select the trendline option in the dropdown list.

  3. Click Format Selection.

  4. In the Format Trendline pane, under Trendline Options, select Moving Average. Specify the points if necessary.

    Note:The number of points in a moving average trendline equals the total number of points in the series less the number that you specify for the period.

Add a trendline

  1. On the View menu, click Print Layout.

  2. In the chart, select the data series that you want to add a trendline to, and then click the Chart Design tab.

    For example, in a line chart, click one of the lines in the chart, and all the data marker of that data series become selected.

    Add a trend or moving average line to a chart (3)

  3. On the Chart Design tab, click Add Chart Element, and then click Trendline.

    Add a trend or moving average line to a chart (4)

  4. Choose a trendline option or click More Trendline Options.

    Add a trend or moving average line to a chart (5)

    You can choose from the following:

    • Exponential

    • Linear

    • Logarithmic

    • Polynomial

    • Power

    • Moving average

    You can also give your trendline a name and choose forecasting options.

Remove a trendline

  1. On the View menu, click Print Layout.

  2. Click the chart with the trendline, and then click the Chart Design tab.

    Add a trend or moving average line to a chart (6)

  3. Click Add Chart Element, click Trendline, and then click None.

    Add a trend or moving average line to a chart (7)

    You can also click the trendline and press DELETE .

Add a trend or moving average line to a chart (8)
  1. Click anywhere in the chart to show the Chart tab on the ribbon.

  2. Click Format to open the chart formatting options.

    Add a trend or moving average line to a chart (9)
  3. Open the Series you want to use as the basis for your Trendline

    Add a trend or moving average line to a chart (10)
  4. Customize the Trendline to meet your needs.

  5. Use the switch to show or hide the trendline.

Add a trend or moving average line to a chart (2024)

FAQs

Add a trend or moving average line to a chart? ›

Moving average trendlines

A moving average uses a specific number of data points (set by the Period option), averages them, and uses the average value as a point in the line. For example, if Period is set to 2, the average of the first two data points is used as the first point in the moving average trendline.

What is the trend line in a moving average? ›

Moving average trendlines

A moving average uses a specific number of data points (set by the Period option), averages them, and uses the average value as a point in the line. For example, if Period is set to 2, the average of the first two data points is used as the first point in the moving average trendline.

How do you find the trend line on a chart? ›

How to Calculate the Trend Line. How does someone calculate the trend line for a graph? A trend line indicates a linear relationship. The equation for a linear relationship is y = mx + b, where x is the independent variable, y is the dependent variable, m is the slope of the line, and b is the y-intercept.

What is the trend line on a line chart? ›

A trendline is a line superimposed on a chart revealing the overall direction of the data. Google Charts can automatically generate trendlines for Scatter Charts, Bar Charts, Column Charts, and Line Charts.

How to add a trend line in a bar graph? ›

Before you create a trendline: You can add trendlines to bar, line, column, or scatter charts.
  1. On your computer, open a spreadsheet in Google Sheets.
  2. Double-click a chart.
  3. At the right, click Customize. Series.
  4. Optional: Next to "Apply to," choose the data series you want to add the trendline to.
  5. Click Trendline.

How do you find the trend moving average? ›

Let's take the very popular 50-day moving average as an example. A 50-day moving average is calculated by taking the closing prices for the last 50 days of any security and adding them together. The result from the addition calculation is then divided by the number of periods, in this case, 50.

What is a trend in a graph example? ›

Trend graphs describe changes over time (e.g. a year, a decade). When describing trends in a report you need to pay careful attention to the use of prepositions: Sales in the UK increased rapidly between 2007 and 2010. There was a sharp decline in sales in Japan from 2007 to 2010.

What is the simple moving average trend? ›

SMA is the easiest moving average to construct. It is simply the average price over the specified period. The average is called "moving" because it is plotted on the chart bar by bar, forming a line that moves along the chart as the average value changes. SMAs are often used to determine trend direction.

How to draw a correct trend line? ›

The line should be sloping in the direction of the trend. Validate the trendline: After drawing the trendline, step back and look at the price chart as a whole. Make sure the trendline makes sense in the context of the overall trend. If the trendline doesn't seem to fit, adjust it as necessary.

What is the best trend line to use on a graph? ›

An exponential trendline is suitable for data points that increase or decrease at an increasing rate, whereas a logarithmic trendline is better for data points that increase or decrease at a decreasing rate.

What is a moving trend line? ›

A moving average trendline smoothes out fluctuations in data to show a pattern or trend more clearly.

What should a trend line look like? ›

Trend lines are straight lines that connect two or more price points on a chart to identify and confirm trends. In technical analysis, trend lines are a fundamental tool that traders and analysts use to identify and anticipate the general pattern of price movement in a market.

What is the trend line on a chart pattern? ›

In the world of trading, chart patterns and trendlines are two popular tools used by traders to identify potential buying or selling opportunities. By using these tools, traders can make informed decisions about when to enter or exit a trade, potentially increasing their profits and minimizing their losses.

How do you find the moving average line? ›

A simple moving average, the most basic of moving averages, is calculated by summing up the closing prices of the last x days and dividing by the number of days.

How do I add a horizontal average line in Excel? ›

In the Change Chart Type dialogue that appears, click to highlight the Combo in the left bar, then click the box behind the Average, and then choose a line chart style from the drop-down list. See the following screenshot. Press the OK button. In your chart, you now see a horizontal line showing the average.

How do you add an average line to a spreadsheet? ›

In the Chart Editor, select the Customize tab and then the Series section. Select the data series for which you want to add an average line, and click the pencil icon to open the Edit Series menu. Check the box next to “Average Line” and configure the details of the line, such as its color and style.

Top Articles
Latest Posts
Article information

Author: Cheryll Lueilwitz

Last Updated:

Views: 6672

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Cheryll Lueilwitz

Birthday: 1997-12-23

Address: 4653 O'Kon Hill, Lake Juanstad, AR 65469

Phone: +494124489301

Job: Marketing Representative

Hobby: Reading, Ice skating, Foraging, BASE jumping, Hiking, Skateboarding, Kayaking

Introduction: My name is Cheryll Lueilwitz, I am a sparkling, clean, super, lucky, joyous, outstanding, lucky person who loves writing and wants to share my knowledge and understanding with you.