Dynamic calculation for LTM/TTM (last 12 months)

krodriguez

Board Regular
Joined
Jul 11, 2012
Messages
119
Hello,

Is there a way to have a dynamic calculation for LTM...I want to get rid off =SUM(Cell1, Cell2, Cell3...Cell12) and manually change the cells once I move from month to month. Ideally the formula can detect the dates and just bring the values.

Example I have:
If I do LTM Dec-15 my results = $1200, what If I want to do LTM Jan-16 = $1300...the idea is to have a dynamic formula that will allow me to select my date, example Jan-16 and automatically calculate the LTM (so I don't mess with the formula), is this possible? Thanks



DateJan-15Feb-15Mar-15Apr-15May-15Jun-15Jul-15Aug-15Sep-15Oct-15Nov-15Dec-15Jan-16
Revenue100100100100100100100100100100100100200

<tbody>
</tbody>
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Calculating with dates is a pain in Excel. But I think this might do it for your project. [N.B. Dates are entered here as Excel date serial numbers.]

{Having trouble with the HTML Editor...}
<b5:p5) (b5:p5<="$B$1))
<b5:p5)*b6:p6*(b5:p5<=$b$1))[ code]
<b5:p5)*b6:p6*(b5:p5<=$b$1))<b5:p5)*b6:p6*(b5:p5<=$b$1))}
</b5:p5)*b6:p6*(b5:p5<=$b$1))<b5:p5)*b6:p6*(b5:p5<=$b$1))}
</b5:p5)*b6:p6*(b5:p5<=$b$1))[></b5:p5)>
 
Last edited:
Upvote 0
This is annoying!
 
Last edited:
Upvote 0
Try again:


Book1
ABCDEFGHIJKLMNOP
1criteriaNov 1, 2015
2prior months12
3Total1,100
4
5DateJan 1, 2015Feb 1, 2015Mar 1, 2015Apr 1, 2015May 1, 2015Jun 1, 2015Jul 1, 2015Aug 1, 2015Sep 1, 2015Oct 1, 2015Nov 1, 2015Dec 1, 2015Jan 1, 2016Feb 1, 2016Mar 1, 2016
6Revenue100100100100100100100100100100100100200500900
Sheet22
Cell Formulas
RangeFormula
B3=SUMPRODUCT((EDATE($B$1,-$B$2))*B6:P6*(B5:P5<=$B$1))
 
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,407
Members
449,448
Latest member
Andrew Slatter

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