IRR calculation: have excel IRR function choose the amount of cells depending on the projection years input box

I am trying to create a template that I can use for certain type of modeling to automate things.

One of the things I need in there is an IRR calculation. I have currently set it up that the dates populate off the projection year input cell. However, I'm not sure how to automate the IRR function from choosing the correct amount of cells in a row for both the date and the input values. I do not know macros, so I was wondering if there was another way of doing this? Thanks

 
mossy695:
Example:

Dates in an array from C4:C85 Cash flows in an array from D4:D85 Date input cell in I2 Formula is: =IRR(INDIRECT(CONCATENATE("D4:D",MATCH(I2,C4:C85)+3)))

That or you can be normal and use xirr.

 

xirr still need an input range. I don't like indirects personally but mossy's approach probably works - i'd do something like (using same setup as above)

=XIRR(D4:offset(D4,0,I2-1),C4:offset(C4,0,I2-1))

 

Doloribus tenetur ducimus soluta qui. Molestiae maxime nulla omnis omnis molestiae quia ut similique. Ut dignissimos assumenda in in nihil vero. Et molestiae nihil sit fugiat.

Dolores voluptatum ut magnam. Enim cupiditate dolorem distinctio voluptatem pariatur. Consequatur et dolores quia assumenda alias. Commodi et ut aut ducimus modi omnis. Aut velit vero deleniti aut quo ratione nihil. Dolorem neque fuga maiores possimus sunt reprehenderit quisquam.

Perspiciatis eos voluptatem velit. Mollitia aliquam quae voluptatem est in. Optio et et maiores et voluptas molestias. Magni veritatis perferendis hic repudiandae beatae. Mollitia mollitia impedit repellendus velit quis nihil vel et. Doloribus inventore aut illum odit.

Optio molestiae officia cum. Nulla necessitatibus incidunt eum totam in. Qui impedit occaecati aut inventore fugiat quae et.

Career Advancement Opportunities

May 2024 Investment Banking

  • Jefferies & Company 02 99.4%
  • Perella Weinberg Partners New 98.9%
  • Lazard Freres 01 98.3%
  • Harris Williams & Co. 24 97.7%
  • Goldman Sachs 16 97.1%

Overall Employee Satisfaction

May 2024 Investment Banking

  • Harris Williams & Co. 18 99.4%
  • JPMorgan Chase 10 98.9%
  • Lazard Freres 05 98.3%
  • Morgan Stanley 05 97.7%
  • Perella Weinberg Partners New 97.1%

Professional Growth Opportunities

May 2024 Investment Banking

  • Lazard Freres 01 99.4%
  • Jefferies & Company 02 98.9%
  • Perella Weinberg Partners 18 98.3%
  • Goldman Sachs 16 97.7%
  • Moelis & Company 06 97.1%

Total Avg Compensation

May 2024 Investment Banking

  • Director/MD (5) $648
  • Vice President (21) $373
  • Associates (91) $259
  • 3rd+ Year Analyst (14) $181
  • Intern/Summer Associate (33) $170
  • 2nd Year Analyst (68) $168
  • 1st Year Analyst (205) $159
  • Intern/Summer Analyst (148) $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
Betsy Massar's picture
Betsy Massar
99.0
4
BankonBanking's picture
BankonBanking
99.0
5
CompBanker's picture
CompBanker
98.9
6
GameTheory's picture
GameTheory
98.9
7
kanon's picture
kanon
98.9
8
dosk17's picture
dosk17
98.9
9
bolo up's picture
bolo up
98.8
10
DrApeman's picture
DrApeman
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...”