Create Dynamic IRR in Excel - modeling

I'm trying to figure out how to create a dynamic IRR syntax in Excel. If I change my disposition date, my cash flows and all other projections adjust automatically. I can't seem to come up with a proper way to have my IRR calculate only certain years cash flows as I change my sale date. I'm sure it's an =IF statement of some type...

Any help is appreciated.

13 Comments
 
Best Response

In REFM, he's pulling in monthly cash flows, then consolidating them for annual IRR. When you F2 the syntax below, whether disposition is yr1 or yr 10, all his cash flows are still in the range, even if they're $0 because the building is sold. I just can't seem to crack it.

This is my struggle with REFM. The data is there but he only covers about 10% of his model with instruction. You're left to reverse engineer.

=(IRR(O109:EQ109,0.2/12)+1)^12-1

I'm pretty new at modeling. I have created a decent but basic MF model. Annual CF's only at this point.

 

What JimboUSC said. Assuming your hold period input is a number of years (i.e. 10), just multiply your main equation by a binary:

Items that only calculate ON the sale period: ex: terminal value, sales cost, outstanding principal =if(current pd=hold pd,1,0) * main equation

Items that only calculate BEFORE and ON the sale period: ex: TI/LC/tenant buyouts/cap reserve/asset mgmt fee/whatever else you want to include here =if(current pd>hold pd,0,1)*main equation

Just make sure you have a "period" line item at the top of your pro forma that tracks how much time has elapsed, and make sure the period's unit of measurements in the above equations are consistent. That's all it is, unless I'm completely missing your point.

 

If my sale is year 4 and years 5-6 in that cell range have $0 in them, won't the IRR calc take into account those periods?

Edit - just took my cell range all the way to year 10 even though sale was year 4 and years 5-6 showed $0. Still got the same IRR even though sale date was year 4. Maybe I'm making this hard on myself.

With that being said, I'll review these last few posts later. Gotta jam for a bit. Thanks for the feedback guys.

 

No no no. I don't know what tutorial you're looking at but simply do this to improve your underwriting:

Assumptions page should have timing table which includes dates and periods daily, monthly annually whatever is required. (LOI date, due diligence period, contract date, due diligence period, closing date, break ground date, periods, completion, investment period, sale date, etc. etc. etc.)

If i can figure out how to upload a screenshot I will.

 

I personally use xirr with the offset function in excel. The offset function paired with count will allow the xirr to adjust to the dates you enter.

 

Dude just use indirect(address()), where your start and ending cash flows will be captured by the address() function and embed that within XIRR, always use XIRR, for the monthly cash flows

 

Repellendus natus velit perspiciatis consequatur voluptatibus dolor sunt. Ratione qui iure dolores deserunt sit in quo. Totam deserunt laboriosam esse rem. Commodi sint veritatis dolore rerum occaecati.

Career Advancement Opportunities

June 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.8%
  • JPMorgan 01 98.3%
  • Guggenheim Partners 01 97.7%
  • Morgan Stanley 07 97.1%

Overall Employee Satisfaction

June 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Morgan Stanley 02 98.8%
  • Evercore 01 98.3%
  • BMO Capital Markets 12 97.7%
  • Banco Santander 01 97.1%

Professional Growth Opportunities

June 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.8%
  • Morgan Stanley 05 98.3%
  • JPMorgan No 97.7%
  • BMO Capital Markets 12 97.1%

Total Avg Compensation

June 2026 Investment Banking

  • Vice President (14) $434
  • Associates (44) $258
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (22) $179
  • Intern/Summer Associate (13) $156
  • 1st Year Analyst (78) $151
  • Intern/Summer Analyst (72) $101
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
Secyh62's picture
Secyh62
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
kanon's picture
kanon
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
Linda Abraham's picture
Linda Abraham
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...”