How to use input cell value to moving average/standard error

AdiVohra

New Member
Joined
Aug 31, 2014
Messages
24
I have a excel spreadsheet that has a currency rate for a certain period of time. I have taken the 5 day moving average/standard error of the mean using an input cell. Whatever the cell B1 value is, the mean should identify this and take the corresponding values from the spot rate to change the moving average range. For example, in the current spreadsheet, the input value is 5 so it has taken the 5 day moving average, but if I were to change this to 10, then it should identify this and take a 10 day moving average for the spot rates. Any ideas of how to do this?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Have a look at the INDIRECT() worksheet function. Some others than may also be needed or useful include OFFSET(), ADDRESS(), ROW() and COLUMN().
 
Upvote 0
Maybe something like this:
The count part of the formula just checks to see if there are enough values to average.

Excel Workbook
ABC
1Data5Moving Avg.
226
348
4610
5812
61014
71216
81418
91620
101822
112024
122226
132428
142630
152832
163034
1732Not Enough Values
1834
1936
2038
Sheet3
 
Upvote 0

Forum statistics

Threads
1,214,899
Messages
6,122,155
Members
449,068
Latest member
shiz11713

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top