Wondering if someone can help me figure this out.
I have a row with numbers, like this:
4 5 1 6 2 7 3 1 12 0 -
I need to get the rolling average of the sum of 4 numbers, but stopping at the point in the row where the first 0 occurs. So in this example, the result would be:
the average of the following sums: (4+5+1+6) & (5+1+6+2) & (1+6+2+7) & (6+2+7+3) & (2+7+3+1) & (7+3+1+12)
Where the first 0 comes will be variable and thus I need a function that determines that.
Any ideas? Thanks.
Bookmarks