Moving Annual Total

afc10

New Member
Joined
Jun 8, 2002
Messages
1
I have Column A as "Date" and Column B as "Customers" (Number of customers in my store on the given date).

I want Column C to be a MAT or Moving Annual Total of the Customer numbers.

If Column A is dated "10 Jun 2002" then the MAT would be the sum of customers from "11 Jun 2001" to "10 Jun 2002". On the 11-Jun-2002 it would sum fom 12-Jun-2001 to 11-Jun-2002. etc etc etc.

I've been trying to use "DSum" but inspite of every reasonable approach I've taken I can't get a result.

Any thoughts please on where I might find a solution.

Thanks
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
On 2002-06-09 03:50, afc10 wrote:
I have Column A as "Date" and Column B as "Customers" (Number of customers in my store on the given date).

I want Column C to be a MAT or Moving Annual Total of the Customer numbers.

If Column A is dated "10 Jun 2002" then the MAT would be the sum of customers from "11 Jun 2001" to "10 Jun 2002". On the 11-Jun-2002 it would sum fom 12-Jun-2001 to 11-Jun-2002. etc etc etc.

I've been trying to use "DSum" but inspite of every reasonable approach I've taken I can't get a result.

Any thoughts please on where I might find a solution.

Thanks

Lets A2 to be the first date entry, B2 the number of customers on the date in A2.

In C2 enter and copy down:

=SUMIF(OFFSET($A$2,0,0,CELL("Row",A2)-1,1),">="&EDATE(A2,-12)+1,OFFSET($B$2,0,0,CELL("Row",A2)-1,1))

In order to use EDATE you need to activate the Analysis Toolpak add-in via Tools|Add-Ins.

See the figure how all this looks like:
aaDynSUMIF afc10.xls
ABCD
1DateCustomersMAT
211-Jun-0188
315-Jun-01917
418-Jun-011027
510-Jun-022047
612-Jun-021352
715-Jun-021861
...


Aladin
 
Upvote 0

Forum statistics

Threads
1,225,665
Messages
6,186,312
Members
453,349
Latest member
neam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top