+ Reply to Thread
Results 1 to 15 of 15

Wonky XIRR Return

  1. #1
    Registered User
    Join Date
    08-13-2015
    Location
    Toronto
    MS-Off Ver
    Office 365
    Posts
    14

    Wonky XIRR Return

    Hi there,

    I have a long XIRR calculation that keeps returning 0.00% even though the negatives are significantly outweighed by the positives (-2,607,471 and +4,661,616). Please see attached spreadsheet. I think there may be something wrong with a setting in excel because 0.00% doesn't make sense. I've checked and iterative calculation is checked. Can anyone suggest what the problem may be?
    Attached Files Attached Files
    Last edited by Drymr; 12-27-2017 at 04:40 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Wonky XIRR Return

    The forum rules explain how to attach a file.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-13-2015
    Location
    Toronto
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Wonky XIRR Return

    Quote Originally Posted by shg View Post
    The forum rules explain how to attach a file.
    Thanks! I uploaded the spreadsheet to my original post.

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Wonky XIRR Return

    Quote Originally Posted by Drymr View Post
    the attachment button above isn't working
    Yeah, I don't why the forum owners don't get that fixed.

    To attach a file, click Go Advanced, scroll down, and click Manage Attachments.


    Quote Originally Posted by Drymr View Post
    iterative calculation is checked
    Don't do that. I know: you probably saw the suggestion online; maybe even in a MSFT article. It is a misdirection; it causes more trouble than it's worth. Enabling Iterative calculation allows unintentional circular references to go undetected.


    Quote Originally Posted by Drymr View Post
    I have a long XIRR calculation that keeps returning 0.00% even though the negatives are significantly outweighed by the positives (-2,607,471 and +4,661,616).
    If you format the cell as General or Scientific, you will probably see that XIRR returns about +/-2.98E-09. Although that is close to zero, it is an arbitrary result that XIRR uses (or the algorithm degenerates to) to signal an error or noncomputable IRR. Sometimes, we should interpret 2.98E-09 to mean the same as #NUM or #DIV/0, to wit: a "guess" parameter is required.

    Often, the situation arises because the cash flow model is wrong due to a misunderstanding. We would need to see the cash flow data (values and dates) along with an explanation of the cash flows in order to get some insight. That might be self-evident if and when you attach an example Excel file that demonstrates the problem.

    But if the cash flows are correct and XIRR simply requires a "guess" parameter, the following demonstrates a procedure that I use to determine a "reasonable" guess.

    Please Login or Register  to view this content.
    With the cash flow model in columns A and B, create a table of discount rates from -99% to 100% (or more) in column E, and calculate the corresponding NPV in column F.

    Unfortunately, Excel XNPV does not permit negative discount rates; a design flaw. So must use SUMPRODUCT to calculate the NPV.

    Where the NPV sign changes, it is possible that NPV=0 is in between. Use the average discount rate as the "guess" parameter.

    This is demonstrated in C3.

    But note that C4 calculates a very different IRR. Yet, we can use Goal Seek to find the appropriate IRR in E24. This demonstrates one of the limitations of the Excel XIRR implementation. Consequently, even with a "reasonable" guess, sometimes Excel XIRR does not work.

    However, in this case, Excel XIRR stumbled upon a third valid IRR, as demonstrated by the fact that the corresponding NPV in F25 is nearly zero.

    The example demonstrates one of the issues with the mathematical IRR, to wit: for some cash flow models, there might be zero or multiple IRRs.

    How do we choose the "right" one? That is a subjective exercise. There is no "right" answer.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Wonky XIRR Return

    If you change the formula to start with the first non-zero value,

    =XIRR(E2:DP2, E1:DP1, 0.1)

    ... it returns 15.04%, which is comfortingly close to what =(1 + IRR(E2:DP2))^12 - 1 returns.

  6. #6
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Wonky XIRR Return

    Quote Originally Posted by Drymr View Post
    Thanks! I uploaded the spreadsheet to my original post.
    The first cash flow is zero. There should be nothing wrong with that. But Excel XIRR apparently does not like it. It returns about 2.98E-09 in that case.

    (That's all I have time to say at the moment.)

  7. #7
    Registered User
    Join Date
    08-13-2015
    Location
    Toronto
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Wonky XIRR Return

    Quote Originally Posted by shg View Post
    If you change the formula to start with the first non-zero value,

    =XIRR(E2:DP2, E1:DP1, 0.1)

    ... it returns 15.04%, which is comfortingly close to what =(1 + IRR(E2:DP2))^12 - 1 returns.
    Huh... I just did that and it worked. Does that mean XIRR calculations always need to start with a non-zero number?

  8. #8
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Wonky XIRR Return

    Quote Originally Posted by Drymr View Post
    Does that mean XIRR calculations always need to start with a non-zero number?
    Yes. But that is only a limitation (defect, IMHO) of the Excel XIRR implementation. Note that Goal Seek can find an IRR for the original cash flow model (first CF=0) using the following formula:

    =SUMPRODUCT(A2:DP2/(1+A5)^((A1:DP1-A1)/365))

    GS finds an IRR at 15.0416756768281%.

    (As noted previously, I avoid using Excel XNPV just in case the IRR is negative, which Excel XNPV does not permit.)

  9. #9
    Registered User
    Join Date
    08-13-2015
    Location
    Toronto
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Wonky XIRR Return

    Quote Originally Posted by joeu2004 View Post
    Yes. But that is only a limitation (defect, IMHO) of the Excel XIRR implementation. Note that Goal Seek can find an IRR for the original cash flow model (first CF=0) using the following formula:

    =SUMPRODUCT(A2:DP2/(1+A5)^((A1:DP1-A1)/365))

    GS finds an IRR at 15.0416756768281%.

    (As noted previously, I avoid using Excel XNPV just in case the IRR is negative, which Excel XNPV does not permit.)
    On my spreadsheet A5 is blank. Why is A5 in your formula?

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Wonky XIRR Return

    Quote Originally Posted by Drymr View Post
    Huh... I just did that and it worked. Does that mean XIRR calculations always need to start with a non-zero number?
    There nothing obvious to me about why it shouldn't work, but it doesn't make sense to me that an IRR calculation would with start with zeros -- the period before any cash flow occurs in either direction.

  11. #11
    Registered User
    Join Date
    08-13-2015
    Location
    Toronto
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Wonky XIRR Return

    Quote Originally Posted by shg View Post
    There nothing obvious to me about why it shouldn't work, but it doesn't make sense to me that an IRR calculation would with start with zeros -- the period before any cash flow occurs in either direction.
    It starts with zeros and ends with zeros because it's part of a larger spreadsheet where payment dates depend on a calendar I've created in excel so if I change an important date in the calendar a payment date would change. For example, if I were to say that I'm purchasing a property in August 2017 instead of the current December 2017 then A2 would have $1,325,289 instead of E2.

    If you're telling me that an XIRR calculation can't start with a zero then that means I can't create an organic spreadsheet where changing the calendar dates will change the IRR. I'm going to have to manually input the first XIRR cell to correspond to the calendar date selected. That's pretty disappointing considering everything else on the spreadsheet works perfectly.

  12. #12
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Wonky XIRR Return

    Cross-posted at: https://www.mrexcel.com/forum/excel-...rr-return.html

    Please read Excel Forum's Cross-Posting policy in rule 8: http://www.excelforum.com/forum-rule...rum-rules.html
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  13. #13
    Registered User
    Join Date
    08-13-2015
    Location
    Toronto
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Wonky XIRR Return

    Quote Originally Posted by macropod View Post
    Cross-posted at: https://www.mrexcel.com/forum/excel-...rr-return.html

    Please read Excel Forum's Cross-Posting policy in rule 8: http://www.excelforum.com/forum-rule...rum-rules.html
    Sorry about that. I was not aware of the policy. Thanks for pointing it out.

  14. #14
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Wonky XIRR Return

    Quote Originally Posted by joeu2004 View Post
    Note that Goal Seek can find an IRR for the original cash flow model (first CF=0) using the following formula:
    =SUMPRODUCT(A2:DP2/(1+A5)^((A1:DP1-A1)/365))
    GS finds an IRR at 15.0416756768281%.
    Quote Originally Posted by Drymr View Post
    On my spreadsheet A5 is blank. Why is A5 in your formula?
    Sorry. I had one foot out the door (I have v-e-r-y long arms :->), so I didn't have time to explain the details.

    A borrowed A5 to be the "by changing" cell for Goal Seek. I put the SUMPRODUCT formula into B5. So the Goal Seek set-up is:

    Set cell: B5
    To value: 0
    By changing cell: A5

    I am not suggesting that you use Goal Seek as a work-around. It was just a quick-and-dirty way to demonstrate the concept.

    There is no conceptual problem with initial zero net cash flows. It would make a difference if we were calculating NPV with a given discount rate other than an IRR because the first cash flow determines the present-value date.

    When the discount rate is an IRR and NPV is exactly zero, we can demonstrate and show mathematically that it makes no difference. It is debatable whether or not to rely on that when NPV is infinitesimally close to zero, which is usually the case.

  15. #15
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Wonky XIRR Return

    Are you married to Excel? At the risk of offending this Excel community, Joeu2004's comments about "buggy", unstable implementations in the Excel implementation of XIRR() suggested to me that I try a different spreadsheet program. Since I have OpenOffice installed on one of my computers, I opened your file without any modification in OpenOffice, and it calculated 15.04%. That's only one other spreadsheet app tested, so it is not a thorough analysis, and there may be other problems in OpenOffice's implementation of XIRR(). It does suggest that, if Excel's implementation of XIRR() has problems, perhaps someone else's implementation of XIRR() will be less buggy. (And, if enough business finance types like you abandon Excel because of a buggy XIRR() implementation, MSFT might be motivated to fix it).
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 11-14-2017, 11:44 AM
  2. Replies: 4
    Last Post: 01-17-2017, 12:58 PM
  3. Help with XIRR
    By billyshears in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2015, 11:34 AM
  4. Data in Excel 2010 Gets Wonky
    By npaprocki in forum Excel General
    Replies: 1
    Last Post: 01-03-2015, 10:16 AM
  5. Plots get all "wonky" when I try to print??? Have no clue why...
    By mhouston in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-14-2013, 10:45 PM
  6. Internal Rate of Return (IRR, XIRR, NPV)
    By The Fjonk in forum Excel General
    Replies: 2
    Last Post: 05-23-2012, 03:30 AM
  7. XIRR: a bug?
    By gummy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2007, 09:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1