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 find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,222,312
Messages
6,165,276
Members
451,949
Latest member
bovacik

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