Sum of Last 12 months ended previous month?

Katniss

New Member
Joined
Mar 24, 2015
Messages
7
Hi, I'm trying to do a formula that counts the last 12 months sales data and then gives a total. But it needs to be a 'rolling total', so each month, I need to know what the total is for the PRIOR 12 months only ending the PREVIOUS month (Also, if the person hasn't has a full year of sales, I just need a total of what they have done so far)

Thanks! :confused:

Month SalesSum of last 12 months Sales (ended previous month)
Jan-10 $500.00$0.00Nothing as no sales prior to Jan 10
Feb-10 $200.00$500.00January only
Mar-10 $100.00$700.00Sum Jan to Feb
Apr-10 $800.00$800.00Sum Jan to Mar
May-10 $1,000.00$1,600.00Sum Jan to Apr
Jun-10 $200.00$2,600.00Sum Jan to May
Jul-10 $0.00$2,800.00Sum Jan to June
Aug-10 $40.00$2,800.00Sum Jan to July
Sep-10 $500.00$2,840.00Sum Jan to Aug
Oct-10 $900.00$3,340.00Sum Jan to Sept
Nov-10 $1,500.00$4,240.00Sum Jan to Oct
Dec-10 $100.00$5,740.00Sum Jan to Nov
Jan-11 $200.00$5,840.00Sum Jan to Dec
Feb-11 $20.00$6,040.00Sum Feb to Jan (last 12 months only)
Mar-11 $0.00$6,060.00Sum March to Feb (last 12 months only)

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Try,

=IFERROR(SUM(OFFSET(C1,-1,,MAX(-12,-ROWS(A$1:A1)+1))),0)

p.s. the last 2 results appeared different, the above formula returned 5540 and 5360, please clarified.

Regards
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,942
Members
449,094
Latest member
teemeren

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