I'm struggling with a formula that will provide an average from quarters of data.
Example: Row 1
I need the 6 month average of the first two quarters.
When data is added to the third quarter the average needs to change to a 9 month average.
Example: Row 2
Also if I have data in the 1st and 3rd quarter only, it will need to calculate the average on 9 months even though the 2nd quarter does not have any values
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]1st Quarter[/TD]
[TD]2nd Quarter[/TD]
[TD]3rd Quarter[/TD]
[TD]4th Quarter[/TD]
[TD]Total[/TD]
[TD]Monthly average[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Row 1[/TD]
[TD]
[TD]
[TD]
[TD]
[TD]
[TD][/TD]
[/TR]
[TR]
[TD]Row 2[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]18[/TD]
[TD="align: center"]0[/TD]
[TD]38[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks, in advance for your help.
Example: Row 1
I need the 6 month average of the first two quarters.
When data is added to the third quarter the average needs to change to a 9 month average.
Example: Row 2
Also if I have data in the 1st and 3rd quarter only, it will need to calculate the average on 9 months even though the 2nd quarter does not have any values
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]1st Quarter[/TD]
[TD]2nd Quarter[/TD]
[TD]3rd Quarter[/TD]
[TD]4th Quarter[/TD]
[TD]Total[/TD]
[TD]Monthly average[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Row 1
[TD]
10
[/TD][TD]
15
[/TD][TD]
0
[/TD][TD]
0
[/TD][TD]
25
[/TD][TD][/TD]
[/TR]
[TR]
[TD]Row 2[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]18[/TD]
[TD="align: center"]0[/TD]
[TD]38[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks, in advance for your help.