Moving average means we calculate the average of the averages of the data set we have, in excel we have an inbuilt feature for the calculation of moving average which is available in the data analysis tab in the analysis section, it takes an input range and output range with intervals as an output, calculations based on mere formulas in excel to calculate moving average is hard but we have an inbuilt function in excel to do so.

**Excel Moving Average (Table of Contents)**

- Moving Average in Excel
- Simple Moving Average in Excel
- Simple Moving Average through Data Analysis Tab in Excel
- Weighted Moving Average in Excel
- Exponential Moving Average in Excel

## What is Moving Average in Excel

Moving average is a widely used technique in time series analysis that is used to predict the future. The moving averages in a time series are basically constructed by taking averages of various sequential values of another times series data.

There are three types of moving averages namely simple moving average, weighted moving average, and exponential moving average in excel.

**#1 – Simple moving average in Excel**

A simple moving average helps in calculating the average of the last number of periods of a data series. Suppose prices of n period are given. Then the simple moving average is given as

**Simple moving average= [P1+P2+………….+Pn]/n**

**#2 – Weighted moving average in Excel**

The weighted moving average provides the weighted average of the last n periods. The weighting decreases with each data point of the previous time period.

**Weighted moving average = (Price * weighting factor) + (Price of previous period * weighting factor-1)**

**#3 – Exponential moving average in Excel**

It is similar to simple moving average that measures trends over a period of time. While simple moving average calculates an average of given data, exponential moving average attaches more weight to the current data.

**Exponential moving average =(K x (C – P)) + P**

Where,

**K**= exponential smoothing constant**C**= current price**P**= previous periods exponential moving average (simple moving average used for first periods calculation)

**How to Calculate Moving Average in Excel?**

Below are the example of moving average in Excel.

#### Example #1 – Simple Moving Average in Excel

For calculating the simple moving average, we have taken sales data of a company from January to December for the year 2018. Our target is to smooth the data and to know the sales figure in January 2019. We will use three months moving average here.

**Step 1: **The moving average of January, February, and March is calculated by taking the sum of the sales figure of the months and then divided it by 3.

**Step 2: **Selecting at the corner of D5 cell and then just dragging and dropping down will give the moving average for the remaining periods. This is excel’s fill tool function.

The sales prediction for January 2019 is 10456.66667.

**Step 3: **Now we plot the sales figure and moving average in the line graph to understand the difference in trend. This can be done from the insert tab. Firstly we have selected the data series and then from the Charts section under insert, we have used the line graph.

After creating the graphs, it can be seen that the graph with the moving average is much more smoothed out than the original data series.

#### Example #2 – Simple Moving Average through Data Analysis Tab in Excel

- Under the Data tab under the Analysis group, we have to click Data Analysis. Following is the screenshot.

- From data analysis, the moving average can be accessed.

- After clicking the moving average, we have selected the sales figure as the input range.

- The labels in the first row are clicked in order to make excel understand that the first row has the label name.

- Interval 3 is selected as because we want three years moving average.

- We have selected the output range with adjacency to the sales figure.

- We also want to see the chart output wherein we will be able to see the difference between the actual and forecasted.

This chart shows the difference between actual and Forecasted Moving Average.

#### Example #3 – Weighted Moving Average in Excel

We use the three years weighted moving average and the formula is given in the screenshot.

After using the formula, we got the moving average for a period.

We got the moving average for all other periods by dragging and dropping values in the following cells.

The forecast for January 2019 i.e. 10718.33

Now we took the line graph to see the smoothening of data. For this, we have selected our month the forecasted data and then inserted a line graph.

Now we will compare our forecasted data with our actual data. In the below screenshots we can easily see the difference between the actual data and forecasted data. The graph on the top is the actual data and the graph in the below is the moving average and forecasted data. We can see that the moving average graph has smoothened significantly as compared to the graph that contains the actual data.

#### Example #4 – Exponential Moving Average in Excel

The formula for exponential moving average is **S _{t}=α.Y_{t-1}+(1- α)S_{t-1}……(1)**

Where,

**Y**= actual observation in the t-1th period_{t-1 }**S**= simple moving average in the t-1th period_{t-1}**α**= smoothening factor and it varies between .1 and .3. Greater the value of α closer is the chart to the actual values and lessen the value of α, more smooth the chart will be.

First, we calculate the simple moving average as shown earlier. After that, we apply the formula given in equation (1). For fixing the α value for all the following values we have pressed F4.

We get the values by dragging and dropping in the following cells.

Now, we want to see the comparison between the actual values, simple moving average, and exponential moving average in excel. We have done this by doing a line chart.

From the above screenshot, we can see the difference between the actual sales figure, simple moving average, and exponential moving average in excel.

### Things to Remember About Moving Average in Excel

- The simple moving average can be calculated using an AVERAGE function in excel
- Moving average helps in smoothening the data
- Seasonal averages are often termed as a seasonal index
- The exponential moving average in excel gives more weight to the recent data than the simple moving average. Therefore smoothening in case of the exponential moving average in excel is more than that of the simple moving average.
- In businesses like a stock market, moving average helps the trader to more easily identify the trend.

### Recommended Articles

This has been a guide to Moving Average in Excel. Here we discuss how to calculate 3 types of moving averages in excel (Simple, Weighted and Exponential) along with practical examples and downloadable excel template. You may learn more about excel from the following articles –

- Formula of Regression Analysis
- Different Types of Line Chart
- Explanation of the Regression Formula
- Line Charts in Excel
- Regression vs ANOVA Differences
- How to do Regression Analysis in Excel
- Create Pivot Chart in Excel
- Create Dynamic Chart in Excel
- Create Dynamic Chart in Excel

- 35+ Courses
- 120+ Hours
- Full Lifetime Access
- Certificate of Completion