Rolling 12 month sum with data separated

odonovanc

Board Regular
Joined
Oct 4, 2017
Messages
60
Office Version
  1. 365
So I want to use a formula calculating a rolling 12 months, and rolling 24 months where the data is separated.
Data looks something like this:


Jan-17 Feb-17 Mar-17 Apr-17 May-17 Jun-17 Jul-17 Aug-17 Sep-17 Oct-17 Nov-17 Dec-17
Charges 100 100 100 100 100 100 100 100


In this example Dec - 17 ends in column P. Jan 2016 begins in Column U. How would I set up a formula to automatically add these 8 months and then the last 4 months of 2016 (Columns AC-AF). I'm assuming I need to add a date somewhere then run off that? This is something I will do every month. So next month I want to easily be able to update the formulas so that it pulls 9 months of 2017 and 3 months of 2016, etc..
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
=sumproduct((1:1<=h1)*(1:1>date(year(h1)-1,month(h1),day(h1))),2:2)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

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