Hello All,
I have this sheet that I need to use two formulas with. XIRR to calculate the IRR for a project and MIRR to calculate whenever the XIRR formula returns an error or a zero value.
I tried the following:
=IF(IFERROR(XIRR(D87:N87,D88:N88),0)=0,MIRR(D87:N87,0.1,0.02),XIRR(D87:N87,D88:N88))
D87:D87 represent the net cash flows
D88:N88 represent the corresponding dates
I know where the error in my formula is coming from. the logical test returns "True" rather than 0.
What I want from the formula is the following, Calculate the IRR using XIRR formula, if that calculation returns and ERROR or a ZERO value, then skip and calculate using MIRR formula instead. I am doing this because I want to use XIRR formula not considering we're reinvesting the cash flows but many times when I have a series of positive net cash flows and then in the 5th year for example it turns negative, XIRR formula returns an error of a zero value, which most of the time does not happen with MIRR formula.
I tried different formulas and this is the one I lost hope at. If you have better suggestions, it would be greatly appreciated.
I would really appreciate any help I can get. Thanks for anyone who can help me in advance.
Example.pngExample.xlsx
Regards
Abdel
Bookmarks