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?

 

Libero error ut ullam illum ea nostrum. Ullam molestias nulla amet ea hic qui aliquid. Voluptatem ut quis cumque et accusamus in ut ut. Suscipit omnis repellat est eos aliquid rem rerum.

Amet dolorum eveniet odit ut quam sit quis. Eligendi mollitia ipsam enim ullam eum id. Rem et et voluptas consequuntur. Explicabo ab nobis unde sed vel id sed.

Career Advancement Opportunities

April 2024 Hedge Fund

  • Point72 98.9%
  • D.E. Shaw 97.9%
  • Magnetar Capital 96.8%
  • Citadel Investment Group 95.8%
  • AQR Capital Management 94.7%

Overall Employee Satisfaction

April 2024 Hedge Fund

  • Magnetar Capital 98.9%
  • D.E. Shaw 97.8%
  • Blackstone Group 96.8%
  • Two Sigma Investments 95.7%
  • Citadel Investment Group 94.6%

Professional Growth Opportunities

April 2024 Hedge Fund

  • AQR Capital Management 99.0%
  • Point72 97.9%
  • D.E. Shaw 96.9%
  • Citadel Investment Group 95.8%
  • Magnetar Capital 94.8%

Total Avg Compensation

April 2024 Hedge Fund

  • Portfolio Manager (9) $1,648
  • Vice President (23) $474
  • Director/MD (12) $423
  • NA (6) $322
  • 3rd+ Year Associate (24) $287
  • Manager (4) $282
  • Engineer/Quant (71) $274
  • 2nd Year Associate (30) $251
  • 1st Year Associate (73) $190
  • Analysts (225) $179
  • Intern/Summer Associate (22) $131
  • Junior Trader (5) $102
  • Intern/Summer Analyst (249) $85
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
Betsy Massar's picture
Betsy Massar
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
Secyh62's picture
Secyh62
99.0
5
GameTheory's picture
GameTheory
98.9
6
CompBanker's picture
CompBanker
98.9
7
dosk17's picture
dosk17
98.9
8
kanon's picture
kanon
98.9
9
Jamoldo's picture
Jamoldo
98.8
10
numi's picture
numi
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...”