Hello all,
I want to ask a question concerning how to sum data of a series based on different horizon. for example, I have following data:
Date Data
2000-1-1 1
2000-1-2 2
2000-1-3 3
2000-1-4 4
2000-1-5 5
2000-1-6 6
...
2000-1-31 31
Date series are in the column A, and Data series are in the column B.
I want to get the sum of each 3 or 5 or 10 data of Column B. In other words, based on 3-day horizon, the value of column D will be: D1=sum(B2:B4), D2=sum(B5:B7), and so on. What is the correct function to achieve this goal?
May I also have a new date series for the corresponding new data in column D? It is assumed that the new date series are in Column C. For example, since cell D1 is the sum of B2 to B4, thus, the date value of C1 should be 2000-1-3.
Thanks a lot for your help!
I want to ask a question concerning how to sum data of a series based on different horizon. for example, I have following data:
Date Data
2000-1-1 1
2000-1-2 2
2000-1-3 3
2000-1-4 4
2000-1-5 5
2000-1-6 6
...
2000-1-31 31
Date series are in the column A, and Data series are in the column B.
I want to get the sum of each 3 or 5 or 10 data of Column B. In other words, based on 3-day horizon, the value of column D will be: D1=sum(B2:B4), D2=sum(B5:B7), and so on. What is the correct function to achieve this goal?
May I also have a new date series for the corresponding new data in column D? It is assumed that the new date series are in Column C. For example, since cell D1 is the sum of B2 to B4, thus, the date value of C1 should be 2000-1-3.
Thanks a lot for your help!
Last edited: