LearnMeExcel
Well-known Member
- Joined
- Aug 11, 2009
- Messages
- 746
- Office Version
- 365
- 2021
- Platform
- Windows
Hi
I am trying to make this simple calculation
This is sample data
[TABLE="width: 134"]
<tbody>[TR]
[TD="width: 79"] Row Labels
[/TD]
[TD="width: 100"] Total Sales
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] January
[/TD]
[TD="width: 100, bgcolor: transparent"] 645,142
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] February
[/TD]
[TD="width: 100, bgcolor: transparent"] 938,921
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] March
[/TD]
[TD="width: 100, bgcolor: transparent"] 546,220
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] April
[/TD]
[TD="width: 100, bgcolor: transparent"] 865,123
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] May
[/TD]
[TD="width: 100, bgcolor: transparent"] 1,010,323
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] June
[/TD]
[TD="width: 100, bgcolor: transparent"] 702,331
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] July
[/TD]
[TD="width: 100, bgcolor: transparent"] 1,014,847
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] August
[/TD]
[TD="width: 100, bgcolor: transparent"] 1,596,815
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] September
[/TD]
[TD="width: 100, bgcolor: transparent"] 1,474,167
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] October
[/TD]
[TD="width: 100, bgcolor: transparent"] 1,604,745
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] November
[/TD]
[TD="width: 100, bgcolor: transparent"] 2,383,518
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] December
[/TD]
[TD="width: 100, bgcolor: transparent"] 3,424,852
[/TD]
[/TR]
[TR]
[TD="width: 79"] Grand Total
[/TD]
[TD="width: 100"] 16,207,005
[/TD]
[/TR]
</tbody>[/TABLE]
I want Measure to Calculate the Sum Of last four months
For example
In May
[SumOfLastFOurMonth]=2995406
And same for other month
This data for 2013 , that is mean for Feb [SumOfLastFOurMonth] = Oct2012+Nov2012+Dec2012+Jan2013
I hope my case is clear
Thank you
I am trying to make this simple calculation
This is sample data
[TABLE="width: 134"]
<tbody>[TR]
[TD="width: 79"] Row Labels
[/TD]
[TD="width: 100"] Total Sales
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] January
[/TD]
[TD="width: 100, bgcolor: transparent"] 645,142
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] February
[/TD]
[TD="width: 100, bgcolor: transparent"] 938,921
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] March
[/TD]
[TD="width: 100, bgcolor: transparent"] 546,220
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] April
[/TD]
[TD="width: 100, bgcolor: transparent"] 865,123
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] May
[/TD]
[TD="width: 100, bgcolor: transparent"] 1,010,323
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] June
[/TD]
[TD="width: 100, bgcolor: transparent"] 702,331
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] July
[/TD]
[TD="width: 100, bgcolor: transparent"] 1,014,847
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] August
[/TD]
[TD="width: 100, bgcolor: transparent"] 1,596,815
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] September
[/TD]
[TD="width: 100, bgcolor: transparent"] 1,474,167
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] October
[/TD]
[TD="width: 100, bgcolor: transparent"] 1,604,745
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] November
[/TD]
[TD="width: 100, bgcolor: transparent"] 2,383,518
[/TD]
[/TR]
[TR]
[TD="width: 79, bgcolor: transparent"] December
[/TD]
[TD="width: 100, bgcolor: transparent"] 3,424,852
[/TD]
[/TR]
[TR]
[TD="width: 79"] Grand Total
[/TD]
[TD="width: 100"] 16,207,005
[/TD]
[/TR]
</tbody>[/TABLE]
I want Measure to Calculate the Sum Of last four months
For example
In May
[SumOfLastFOurMonth]=2995406
And same for other month
This data for 2013 , that is mean for Feb [SumOfLastFOurMonth] = Oct2012+Nov2012+Dec2012+Jan2013
I hope my case is clear
Thank you