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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
=sumproduct((1:1<=h1)*(1:1>date(year(h1)-1,month(h1),day(h1))),2:2)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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