Dynamic XIRR for sum of CF's with Offset

willr2819

New Member
Joined
Nov 28, 2022
Messages
2
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hello All,

I have noticed that this has been a question in other threads on this forum; however I have been unable to locate this particular question using the formulas in the sheet below (vertically vs horizontally).

Question: Is it possible to make a dynamic XIRR formula to search for the first value < or > 0 and begin calculating it from there? Will the other formulas that are used in this table conflict with the XIRR Offset formula or whatever solution that is proposed?

Something to note is that the start date will always be 1/15/12, which is where I would like the formula to start every time. As for the end date, I can manually update the end date each quarter (12/31/22) and add in dates.

Problem: I am trying to get excel to automatically go to the first value that is found within my XIRR table (vertically) and skip all of the values that are 0's (AKA i want it to look at the first value "<>0"). Any value that is 0 after that number (31,805,623) is fine, but since this will be used on multiple projects, that value could start in a different cell on the next IRR review.

It seems that this person was on the right track for what I wanted to do; however this is a horizontal calculation vs vertical and when I put a zero for the first cash flow in their table, it calculated the IRR as 0.00% which did not make it as dynamic as I thought it would be.

Link: Dynamic XIRR (OFFSET) Transposing Formula Help

If someone can provide me the formula I would need to use in this example, I would greatly appreciate it.

Thank you so much!

EXCEL Question for MR.EXCEL.xlsx
ABCDELMNOP
1Cash DateIRR DateNet AmountEquity InvestedRealized Value
21/6/20151/15/2015(33,880,196.00)(33,880,196.00)-
31/15/20151/15/20152,074,573.002,074,573.00-
42/15/20152/15/2015(118,276.67)(118,276.67)-
54/15/20154/15/20151,592,841.00-1,592,841.00
67/15/20157/15/20151,906,930.69-1,906,930.69
710/15/201510/15/2015592,903.43-592,903.43
810/15/201510/15/20151,927,885.98-1,927,885.98
91/26/20161/15/2016586,641.37-586,641.37
101/15/20161/15/20161,907,524.25-1,907,524.25
114/4/20164/15/2016581,316.00-581,316.00
124/15/20164/15/20161,210,142.92-1,210,142.92
134/20/20164/15/20161,890,207.00-1,890,207.00
147/25/20167/15/20161,756,952.00-1,756,952.00
1510/1/201610/15/20161,893,133.05-1,893,133.05
169/30/20199/15/20192,237.822,237.82-
1712/22/202112/15/2021(1,576.68)-(1,576.68)
18LOC Payoff12/31/202212/31/2022--
19Unrealized Value12/31/202212/31/2022250,000.00-250,000.00
20
211/15/2012-
222/15/2014-
231/15/2015(31,805,623.00)
242/15/2015(118,276.67)
253/15/2015-
264/15/20151,592,841.00
275/15/2015-
287/15/20151,906,930.69
298/15/2015-
309/15/2015-
3110/15/20152,520,789.41
3211/15/2015-
3312/15/2015-
341/15/20162,494,165.62
352/15/2016-
363/15/2016-
374/15/20163,681,665.92
385/15/2016-
396/15/2016-
407/15/20161,756,952.00
418/15/2016-
429/15/2016-
4310/15/20161,893,133.05
4411/15/2016-
457/15/2019-
468/15/2019-
479/15/20192,237.82
4810/15/2021-
4911/15/2021-
5012/15/2021(1,576.68)
5111/15/2022-
5212/15/2022-
5312/31/2022250,000.00
54(15,826,760.84)
55
56 XIRR Calculation (Manual) -34.31%<- this is the correct XIRR
57 Automatic XIRR (Offset)
Sheet2
Cell Formulas
RangeFormula
N19N19=L19
M24:M27,M52,M49,M46:M47,M29:M44M24=DATE(YEAR(M23),MONTH(M23)+INT(1),DAY(M23)+MOD(1,1)*30)
N21:N53N21=SUMIF($E$1:$E$1242,M21,$L$1:$L$1242)
N54N54=SUM(N23:N53)
N56N56=XIRR(N23:N53,M23:M53)
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I think this is helpful, if I understand what you're after.

N57: =XIRR(FILTER(N21:N53,N21:N53<>0),FILTER(M21:M53,N21:N53<>0))
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

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