My auto-LTM formula

I thought I'd share my excel formulas for automatically calculating LTM and having the column containing my first forecasted quarter shaded. I added the latter today.

Why do this - simply to avoid having to alter formulas to calculate LTM every time a quarter changes. It also helps to pull most recent cash / debt for use in valuation.

I've broken the formula into several cells, but you could probably combine them.

First, I type MRQ above the most recent quarter in cell H1

In columns Y through AB I have the most recent four quarters, then sum them in AC to get the LTM

The driver is in cell AB2
=match("MRQ",$A$1:$X$1) -- this gives the column that MRQ is in and is the reference point for all the formulas

In cell AB3 I have the address of the most recent quarter
=Address(4,AB2) - note that in row 4, I have the headings Q1, Q2, ... FY'12, FY'13, etc

In cell AB4, I pull the heading of the most recent quarter
=Indirect(AB3,True)

Here's the fancy cell that will drive most of the automation
In cell AB5, I create the R1C1 references that will help pull the data from the correct quarters.

="R[0]c[-"&text(columnAB2)-AB2,"0")&"]"

Now let's pull the first piece of data...

In row 7, I have "Revenue"
So in AB7, I want to pull the most recent quarter's revenue
=indirect(AB$5,FALSE)

You can copy that down through the P&L

Now for the other quarters. The only trick is that if Q1 is the MRQ, the column directly to the left is not one quarter prior. It'd be the summation of the FY.

So, now to find the prior quarter's column.
AA2 the formula is:
=if(AB4="Q1",AB2-2,AB2-1)

AA3 = Address(4,AA2)
AA4 = Indirect(AA3,True)
AA5 = "R[0]c[-"&text(columnAa2)-Aa2,"0")&"]"

AA7, to pull revenue for prior quarter = Indirect(AA$5,False)

You can then copy that range of formulas into Z, and Y.

Now you've got the four most recent quarters of data all lined up, so in column AC I simply sum them.

It's also useful on the balance sheet where you can pull most recent cash / debt for use in valuation (which I do on a separate tab).

CONDITIONAL FORMATTING
I like to have the next quarter (first quarter I am projecting) shaded in a light gray.

The formula is:
=If($AB$4="Q4",if(column()-2=$AB$2,1,0),if(column()-1=$AB$2,1,0))

Again, if the MRQ is Q4, the next column to the right is the fiscal year, not Q1 of the next, so first you have to check for that, otherwise, the formula uses my "LTM cells" to find where "MRQ" is and shade the column to the right.

You then want to apply this formatting across the spreadsheet, something like $A$1:$AC$2000

The only problem I have encountered is when I update the spreadsheet and move "MRQ" to the right by one column, if I cut and paste, for some reason the conditional formatting range will get screwed up. So instead, copy, paste, then delete the old MRQ.

Thoughts? Anyone have a better way?

2 Comments
 

Facilis blanditiis delectus eos a. Est corporis ipsam exercitationem voluptatem illum voluptates voluptates. Ut corrupti commodi placeat explicabo accusantium pariatur dolor. Velit vero ipsum perspiciatis officia ea sunt. Sit provident rerum repellat velit eveniet nisi est. Eius ut consequatur ut voluptatem dolorem eum nisi.

Consequatur ipsum et possimus vel molestiae. Accusamus soluta asperiores dolorem voluptatem. Animi quod sed atque consequatur enim vel laborum. Unde qui ullam qui autem qui.

Recusandae eius amet odio reiciendis deserunt asperiores aut. Perspiciatis eum aut incidunt sit nemo tempora nobis. Consequatur architecto minima est ut earum quaerat velit non. Enim ullam sed voluptatem at et. Perspiciatis eum nobis quia dicta et odio. Quod magnam repellat repellat dignissimos odio molestiae ut. Sunt cupiditate itaque omnis doloremque corrupti aut et fugiat.

Career Advancement Opportunities

July 2026 Hedge Fund

  • Point72 99.0%
  • D.E. Shaw 98.1%
  • Citadel Investment Group 97.1%
  • AQR Capital Management 96.2%
  • Magnetar Capital 95.2%

Overall Employee Satisfaction

July 2026 Hedge Fund

  • Magnetar Capital 99.0%
  • D.E. Shaw 98.0%
  • Blackstone Group 97.1%
  • Citadel Investment Group 96.1%
  • Millennium Partners 95.1%

Professional Growth Opportunities

July 2026 Hedge Fund

  • AQR Capital Management 99.0%
  • Point72 98.1%
  • D.E. Shaw 97.1%
  • Citadel Investment Group 96.2%
  • Magnetar Capital 95.2%

Total Avg Compensation

July 2026 Hedge Fund

  • Portfolio Manager (9) $1,648
  • Vice President (27) $464
  • Director/MD (12) $423
  • NA (9) $320
  • Engineer/Quant (86) $288
  • 3rd+ Year Associate (26) $284
  • Manager (4) $282
  • 2nd Year Associate (32) $253
  • 1st Year Associate (77) $191
  • Analysts (242) $181
  • Intern/Summer Associate (29) $145
  • Junior Trader (5) $102
  • Intern/Summer Analyst (282) $96
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
BankonBanking's picture
BankonBanking
99.0
3
kanon's picture
kanon
99.0
4
Secyh62's picture
Secyh62
99.0
5
Betsy Massar's picture
Betsy Massar
98.9
6
CompBanker's picture
CompBanker
98.9
7
dosk17's picture
dosk17
98.9
8
GameTheory's picture
GameTheory
98.9
9
DrApeman's picture
DrApeman
98.9
10
Mimbs's picture
Mimbs
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”