Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
INPUT | OUTPUT | CALCULATION |
1 | 4 | (A2+A3+A4+A5)/4 |
3 | 6 | (A3+A4+A5+A6)/4 |
5 | 8 | (A4+A5+A6+A7)/4 |
7 | 10 | (A5+A6+A7+A8)/4 |
9 | 12 | (A6+A7+A8+A9)/4 |
11 | 14 | (A7+A8+A9+A10)/4 |
13 | 16 | (A8+A9+A10+A11)/4 |
15 | 18 | (A9+A10+A11+A12)/4 |
17 | 20 | (A10+A11+A12+A13)/4 |
19 | 22 | (A11+A12+A13+A14)/4 |
21 | 24 | (A12+A13+A14+A15)/4 |
23 | 26 | (A13+A14+A15+A16)/4 |
25 | 20.25 | |
27 | 14 | |
29 | 7.25 |
Hi,
Thanks for the prompt reply. But my intention is not just to calculate the average but I would like to calculate the average for running values.
In the below example mentioned, I would like to calculate the average of 4 numbers. Here the input values for calculating the average always changes. Please reffer to the calculation column in the below table.
If you see the calculation, as the records move further the starting value also increases the row_ID by 1 and considers the next 4 values and calculates the average.
INPUT OUTPUT CALCULATION 1 4 (A2+A3+A4+A5)/4 3 6 (A3+A4+A5+A6)/4 5 8 (A4+A5+A6+A7)/4 7 10 (A5+A6+A7+A8)/4 9 12 (A6+A7+A8+A9)/4 11 14 (A7+A8+A9+A10)/4 13 16 (A8+A9+A10+A11)/4 15 18 (A9+A10+A11+A12)/4 17 20 (A10+A11+A12+A13)/4 19 22 (A11+A12+A13+A14)/4 21 24 (A12+A13+A14+A15)/4 23 26 (A13+A14+A15+A16)/4 25 20.25 27 14 29 7.25
Kindly drop me a note if you need any further information on the same.
Thank you..!
Regards,
Harinath