Average in excel chart

Note: These steps apply to Office 2013 and newer versions. Looking for Office 2010 steps?

Add a trendline

Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.

  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:

  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 trend or moving average line to a chart in Office 2010

  1. On an unstacked, 2-D, area, bar, column, line, stock, xy (scatter), or bubble chart, click the data series to which you want to add a trendline or moving average, or do the following to select the data series from a list of chart elements:

    1. Click anywhere in the chart.

      This displays the Chart Tools, adding the Design, Layout, and Format tabs.

    2. On the Format tab, in the Current Selection group, click the arrow next to the Chart Elements box, and then click the chart element that you want.

  2. Note: If you select a chart that has more than one data series without selecting a data series, Excel displays the Add Trendline dialog box. In the list box, click the data series that you want, and then click OK.

  3. On the Layout tab, in the Analysis group, click Trendline.

    Analysis group on the Layout tab (Chart Tools)

  4. Do one of the following:

    1. Click a predefined trendline option that you want to use.

      Note: This applies a trendline without enabling you to select specific options.

    2. Click More Trendline Options, and then in the Trendline Options category, under Trend/Regression Type, click the type of trendline that you want to use.

    Use this type

    To create

    Linear

    A linear trendline by using the following equation to calculate the least squares fit for a line:

    Linear

    where m is the slope and b is the intercept.

    Logarithmic

    A logarithmic trendline by using the following equation to calculate the least squares fit through points:

    Logarithmic

    where c and b are constants, and ln is the natural logarithm function.

    Polynomial

    A polynomial or curvilinear trendline by using the following equation to calculate the least squares fit through points:

    Polynomial

    where b and c1..c6 are constants.

    Power

    A power trendline by using the following equation to calculate the least squares fit through points:

    Power

    where c and b are constants.

    Note: This option is not available when your data includes negative or zero values.

    Exponential

    An exponential trendline by using the following equation to calculate the least squares fit through points:

    Exponential

    where c and b are constants, and e is the base of the natural logarithm.

    Note: This option is not available when your data includes negative or zero values.

    Moving average

    A moving average trendline by using the following equation:MovingAverage

    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.

    R-squared value

    A trendline that displays an R-squared value on a chart by using the following equation:

    RSquaredValue

    This trendline option is available on the Options tab of the Add Trendline or Format Trendline dialog box.

    Note: The R-squared value that you can display with a trendline is not an adjusted R-squared value. For logarithmic, power, and exponential trendlines, Excel uses a transformed regression model.

    • If you select Polynomial, type the highest power for the independent variable in the Order box.

    • If you select Moving Average, type the number of periods that you want to use to calculate the moving average in the Period box.

    • If you add a moving average to an xy (scatter) chart, the moving average is based on the order of the x values plotted in the chart. To get the result that you want, you might have to sort the x values before you add a moving average.

    • If you add a trendline to a line, column, area, or bar chart, the trendline is calculated based on the assumption that the x values are 1, 2, 3, 4, 5, 6, etc.. This assumption is made whether the x-values are numeric or text. To base a trendline on numeric x values, you should use an xy (scatter) chart.

    • Excel automatically assigns a name to the trendline, but you can change it. In the Format Trendline dialog box, in the Trendline Options category, under Trendline Name, click Custom, and then type a name in the Custom box.

Tips: 

  • You can also create a moving average, which smoothes out fluctuations in data and shows the pattern or trend more clearly.

  • If you change a chart or data series so that it can no longer support the associated trendline — for example, by changing the chart type to a 3-D chart or by changing the view of a PivotChart report or associated PivotTable report — the trendline no longer appears on the chart.

  • For line data without a chart, you can use AutoFill or one of the statistical functions, such as GROWTH() or TREND(), to create data for best-fit linear or exponential lines.

  1. On an unstacked, 2-D, area, bar, column, line, stock, xy (scatter), or bubble chart, click the trendline that you want to change, or do the following to select it from a list of chart elements.

    1. Click anywhere in the chart.

      This displays the Chart Tools, adding the Design, Layout, and Format tabs.

    2. On the Format tab, in the Current Selection group, click the arrow next to the Chart Elements box, and then click the chart element that you want.

  2. On the Layout tab, in the Analysis group, click Trendline, and then click More Trendline Options.

    Analysis group on the Layout tab (Chart Tools)

  3. To change the color, style, or shadow options of the trendline, click the Line Color, Line Style, or Shadow category, and then select the options that you want.

  1. On an unstacked, 2-D, area, bar, column, line, stock, xy (scatter), or bubble chart, click the trendline that you want to change, or do the following to select it from a list of chart elements.

    1. Click anywhere in the chart.

      This displays the Chart Tools, adding the Design, Layout, and Format tabs.

    2. On the Format tab, in the Current Selection group, click the arrow next to the Chart Elements box, and then click the chart element that you want.

  2. On the Layout tab, in the Analysis group, click Trendline, and then click More Trendline Options.

    Analysis group on the Layout tab (Chart Tools)

  3. To specify the number of periods that you want to include in a forecast, under Forecast, click a number in the Forward periods or Backward periods box.

  1. On an unstacked, 2-D, area, bar, column, line, stock, xy (scatter), or bubble chart, click the trendline that you want to change, or do the following to select it from a list of chart elements.

    1. Click anywhere in the chart.

      This displays the Chart Tools, adding the Design, Layout, and Format tabs.

    2. On the Format tab, in the Current Selection group, click the arrow next to the Chart Elements box, and then click the chart element that you want.

  2. On the Layout tab, in the Analysis group, click Trendline, and then click More Trendline Options.

    Analysis group on the Layout tab (Chart Tools)

  3. Select the Set Intercept = check box, and then in the Set Intercept = box, type the value to specify the point on the vertical (value) axis where the trendline crosses the axis.

    Note: You can do this only when you use an exponential, linear, or polynomial trendline.

  1. On an unstacked, 2-D, area, bar, column, line, stock, xy (scatter), or bubble chart, click the trendline that you want to change, or do the following to select it from a list of chart elements.

    1. Click anywhere in the chart.

      This displays the Chart Tools, adding the Design, Layout, and Format tabs.

    2. On the Format tab, in the Current Selection group, click the arrow next to the Chart Elements box, and then click the chart element that you want.

  2. On the Layout tab, in the Analysis group, click Trendline, and then click More Trendline Options.

    Analysis group on the Layout tab (Chart Tools)

  3. To display the trendline equation on the chart, select the Display Equation on chart check box.

    Note: You cannot display trendline equations for a moving average.

Tip: The trendline equation is rounded to make it more readable. However, you can change the number of digits for a selected trendline label in the Decimal places box on the Number tab of the Format Trendline Label dialog box. (Format tab, Current Selection group, Format Selection button).

  1. On an unstacked, 2-D, area, bar, column, line, stock, xy (scatter), or bubble chart, click the trendline for which you want to display the R-squared value, or do the following to select the trendline from a list of chart elements:

    1. Click anywhere in the chart.

      This displays the Chart Tools, adding the Design, Layout, and Format tabs.

    2. On the Format tab, in the Current Selection group, click the arrow next to the Chart Elements box, and then click the chart element that you want.

  2. On the Layout tab, in the Analysis group, click Trendline, and then click More Trendline Options.

    Analysis group on the Layout tab (Chart Tools)

  3. On the Trendline Options tab, select Display R-squared value on chart.

Note: You cannot display an R-squared value for a moving average.

  1. On an unstacked, 2-D, area, bar, column, line, stock, xy (scatter), or bubble chart, click the trendline that you want to remove, or do the following to select the trendline from a list of chart elements:

    1. Click anywhere in the chart.

      This displays the Chart Tools, adding the Design, Layout, and Format tabs.

    2. On the Format tab, in the Current Selection group, click the arrow next to the Chart Elements box, and then click the chart element that you want.

  2. Do one of the following:

    1. On the Layout tab, in the Analysis group, click Trendline, and then click None.

      Analysis group on the Layout tab (Chart Tools)

    2. Press DELETE.

Tip: You can also remove a trendline immediately after you add it to the chart by clicking Undo Undo button on the Quick Access Toolbar, or by pressing CTRL+Z.

Home > Data Recovery > 3 Ways to Add an Average Line to Your Charts in Excel (Part I)

Chart in Excel are always used to analyze some important information. Therefore, in this article we will demonstrate how to add horizontal average line to vertical chart in Excel.

In an Excel worksheet, you will always add a chart according to the data in certain cells. And sometimes, you will need to know the average level of certain index. For example, in this image, you can see that there is a bar chart for the sales volume of those sales representatives.Bar Chart for Sales Volume

However, the average level is hard to see from this chart. Thus, you need to add an average line into this chart. And the following are the two ways to add.

Add Horizontal Average Line to Vertical Chart

The following are the steps to add a horizontal average line.

  1. In the original worksheet, add a column of average sales volume.Add an Average Column

And you can use the Average function to calculate the number.

  1. Select the whole area including the average column.
  2. Click the “Insert” tab in the ribbon.
  3. And then click the “Column”.Create a Bar Chart
  4. Now in the drop down menu, click the clustered column to create a bar chart. Thus, you have created a new chart.The New Chart
  5. Right click any of the red bars in the column.
  6. In the new menu, choose the “Change Series Chart Type”.Choose Change Series Chart Type
  7. And then in the “Change Chart Type”, choose the line chart.Choose Line Chart
  8. Next click “OK”. Therefore, you have finished all the setting, and you can see that in the bar chart, there is an average line.The Average Line

Add Horizontal Line through Inserting Line Feature

This is the other method to add an average line.

  1. In the original worksheet, add a row of average sales volume.Add an Average Row
  2. Select the whole area.
  3. Repeat the step3-step5 in the previous part to create a bar chart.The New Bar Chart
  4. Click the chart to position the cursor on the chart. If you skip this step, the line will not in the chart.
  5. Click the “Insert” tab in the ribbon.
  6. And then click the “Shapes”.
  7. In the drop-down menu, choose the “Line”.Click Line
  8. Then hold the key “Shift” on the keyboard.
  9. In this step, you should be more careful. Put your cursor on the top of the bar “Average”.Put the Cursor on the Top of the Bar
  10. Then use your mouse to drag and draw a line in the chart. Because now you are holding the “Shift”, you don’t need to worry about the line will not be horizontal.Draw the Average Line

Thus, the average line will be created. And if you want to change the color or the type to make it clearer, you can also set in the ribbon.

The above are the two ways to add horizontal line into a vertical chart. In addition,  in the next article, we will introduce about adding a vertical line into the horizontal bar chart.

Author Introduction:

Anna Ma is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including word recovery and outlook repair software products. For more information visit www.datanumen.com

Return to Charts Home

This graph will demonstrate how to add an average line to a graph in Excel.

Add Average Line to Graph in Excel

Starting with your Data

We’ll start with the below bar graph. The goal of this tutorial is to add an average line to help show how each bar compares to the average.

Average Line Graph Data in Excel

Adding Average

In the next column, create an average formula by typing in =AVERAGE(Range), in this case =AVERAGE($C$6:$C:$10). The average should be the same number for each X Axis. (Note: use $s to lock the cell references so they don’t change when the formula is copied down).

Create Average Column for Graph in Excel

Adding Average Dataset to Graph

  1. Right click graph
  2. Click Select data

Select Data to Create Average Line for Graph in Excel

3. Click Add Series

Add Series to Create Average Line in Excel

4. Select Header under Series Name

5. Select Range of Values for Series Values and click OK.

Update Series to Add Average Graph in Excel

Change Average to Line Graph

  1. Right click on graph
  2. Select Change Chart Graph

Change Chart Type to Line Graph in Excel

3. Select Combo

4. Click Graph next to Average

5. Select Line

Change Average to Line Graph in Excel

Final Graph with Average Line

As you can see, the final product is a bar graph of the items with an average line to show comparisons between the items.

Final Graph with Average Line Graph in Excel

Add Average Line to Graph in Google Sheets

  1. Select Data that was put together in Excel
  2. Click Insert
  3. Click Chart

Add Average Line Graph in Chart in Google Sheets

Final Graph with Average Line

Final Graph for Average Line Graph in Google Sheets

It’s very easy to chart moving averages and standard deviations in Excel 2016, using the Trendline feature.

Excel charts and trendlines of this kind are covered in great depth in our Essential Skills Books and E-books. If you’re not familiar with Excel charts or want to improve your knowledge it could be of great value to you.

Adding a moving average to a chart

To add a two-period moving average trendline to the chart, click it and then click:
Chart Tools > Design > Chart Layouts > Add Chart Element > Trendline > Moving Average.

Adding standard deviation error bars to a chart

For Standard Deviation, it’s likely that you’ll want to use ‘error bars’ instead of trendlines.  Error bars work in almost exactly the same way as trendlines. To add standard deviation error bars, click: Chart Tools > Design > Chart Layouts > Add Chart Element > Error Bars > Error Bars with Standard Deviation.

Calculating average and standard deviation separately

If these options aren’t what you’re looking for, you may want to calculate the average and standard deviation figures within your data by using the AVERAGE and STDEV functions. You can then create charts based upon the results of your calculations.

If Excel formulas and functions aren’t familiar to you, you could find our free Basic Skills E-book extremely useful. Basic Skills will teach you the basics of Excel formulas as well as many other basic Excel skills.

Advanced functions are covered in our Expert Skills Books and E-books.

Share this article

Recent Articles

Leave a Reply

In Microsoft Excel, you can add an average line to a chart to show the average value for the data in your chart. In this Excel, tutorial you will learn how to create a chart with an average line.

First, prepare some data tables.

data table average line

Preparing an average line for a graph

Click on the average column. Use Excel average function for calculations. Type in =AVERAGE(all cells in the total column ex. $B$2:$B$24) and click enter.

Average column

In my example formula is =AVERAGE([Sales]) or =AVERAGE($B$2:$B$24). On best-excel-tutorial.com, you can learn more about Define Name.

Select all the data, and create the chart by clicking on insert tab. I recommend Column Chart or Line Chart.

Column chart with Average Line

Right-click on the average column. From the list, choose the Change Series Chart Type option.

Change Series Chart Type

Inserting average chart

Choose a Line Chart.

Line Chart

Adding an average line in chart

The average line chart is ready.

Chart with Average Line

This is it. Average line on the chart could be useful to compare data with an average value. You can choose another type of line, and write the title of chart.

Понравилась статья? Поделить с друзьями:
  • Autoshape в excel что это такое
  • Australian word of the day
  • Autoshape в excel как удалить
  • Australian word for friends
  • Automator pdf to word