# Moving Average Using Excel

Stesp to calculate the moving average using Excel are presented.

Note that you need to first load the analysis toolPack in Excel if it is not loaded yet.

Example to be used

Given the stock price of a company over a 12 day period

102.6 , 103.1 , 100.4 , 105.7 , 100.2 , 105.4 , 107.2 , 102.6 , 108.5 , 110.4 , 106.2 , 108.2,

find the 5-day moving average of the stock price and graph both the stock price and the 5-day moving average on the same system of axes.

Step 1 - Organize the data sets in a column (or row) and __use labels__ in the first row such as "Stock Price", as shown below.

Step 2 - Create a label for the moving average outputs in a column adjacent to the given data.

Step 3 - Press on the "Data" tab and click on "Data Analysis".

Step 4 - Select "Moving Average" and press "OK".

Step 5 - Clear all inputs and output areas.

Step 6 - Click inside "Input Range" and use the mousse to select the column containing the data values, whose moving average you need to calculate, including the label "Stock Price".

Step 7 - Check labels because you included the label when selecting the input data in step 6.

Step 8 - Input the interval of the moving average to be calculated. In this example we are looking for the 5-day moving average, therefore the interval is 5

Step 9 - Click inside "Output Range" and use mousse to select the first cell below the label "Moving Average".

Step 10 - Check "Chart Output" and press OK.

Step 11 - Read and interpret the data and the graphs. The moving average is in column "Moving Average" and start on day 5. You also have the graphs of both the stock prices and the 5-day moving average on the same system of axes which you can format the way you wish.

## More References and links

- Data Analysis in Excel
- Load The Analysis ToolPack in Excel
- Correlation Coefficient Examples with Solutions
- Correlation Problems with Real Life Data