Hello all,
I would like to make a dynamic moving average on the column of data that has no fixed length. I would like the moving average to be plotted on the chart so the change of moving average parameter is visible instantly.
I have to stick to .xlsx extension, so I cannot use VBA or macros.
Length of the data column is changing so in case of using a helper column it should (probably) be expanded to the whole length of the column (to incorporate the "worst-case" scenario). That significantly adds to the file size and slows down the process even for a very short raw data column. So, no helper column.
I managed to get to the following formula (rawdata is dynamic named range for the data column, $C$4 holds the parameter)
It seems to work when entered as array formula. When I try to define it as a new named range to put in on the chart it fails (see the attached workbook).![]()
=AVERAGE(OFFSET(rawdata;ROW(rawdata)-1;0;$C$4;1))
I use Excel 2010.
Any idea is greatly appreciated.
Bookmarks