Moving average chart in Excel

You may think of a moving average for forecasting stocks or investments. But you can also use it to see trends for inventory, sales, or similar data. Without equations or functions, you can calculate a moving average easily in Excel.

RELATED: How to Use the Built-In Stocks Feature in Microsoft Excel

Add the Data Analysis Tool in Excel

While you can perform calculations and create a line graph to display your moving average in Excel, there’s an easier way.

Microsoft offers a free Analysis ToolPak that you can add to Excel. The tool lets you develop statistical or engineering analyses with a variety of functions. One such option is a moving average.

To see if you already have the Analysis ToolPak, go to the Data tab and look for the Data Analysis button in the Analysis section of the ribbon.

Data Analysis on the Data tab

If you have the button, you’re good to go and can move on to calculating a moving average below. If not, here’s you can add it quickly.

Go to the Search box at the top of Excel and enter “Add-ins.” When you see Add-ins in the list, select it.

Search for Add-ins in Excel

Alternatively, click File > Options and select “Add-ins” on the left. At the bottom of the window, next to Manage, pick “Excel Add-ins” and click “Go.”

Go to File, Options, Add-ins

After the Add-ins window displays, check the box next to Analysis ToolPak and click “OK.”

Select Analysis ToolPak

Now when you head to the Data tab, you should see the Data Analysis button in the ribbon.

RELATED: How to Get Microsoft Excel to Calculate Uncertainty

Calculate a Moving Average

When you’re ready to calculate the moving average, click the Data Analysis button on the Data tab. Select “Moving Average” from the list and click “OK.”

Pick Moving Average

At the top of the Moving Average window, enter the Input Range into the corresponding box. You can also click inside the box and then drag through your data range. Optionally, you can check the box for “Labels in First Row” and include an Interval.

Enter the Input Range

Next, enter the Output Range by entering a cell reference or clicking inside the box and selecting a cell on your sheet. Optionally, you can check the box for Standard Errors. And to create a graph of the moving average as well as receive the results, check the box for Chart Output.

Enter the Output Range

When you finish setting up the moving average click “OK” and you’ll see the output. You have the values beginning in the cell you selected for the output. If you selected the Chart Output, you’ll have a handy line graph displaying the data as well.

Receive the moving average results and chart in Excel

Tip: You can customize the Moving Average graph like any other chart you create in Excel. Select the graph and use the Chart Design tab to adjust the layout, colors, legend, and more.

Be sure to check out the other options available with the Analysis ToolPak. You can do things like create a histogram, find a correlation, or use the random number generator.

Profile Photo for Sandy Writtenhouse Sandy Writtenhouse
With her B.S. in Information Technology, Sandy worked for many years in the IT industry as a Project Manager, Department Manager, and PMO Lead. She learned how technology can enrich both professional and personal lives by using the right tools. And, she has shared those suggestions and how-tos on many websites over time. With thousands of articles under her belt, Sandy strives to help others use technology to their advantage.
Read Full Bio »