+ Reply to Thread
Results 1 to 3 of 3

XIRR with ebbs and flows of capital

  1. #1
    Registered User
    Join Date
    04-15-2013
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2016 Mac
    Posts
    11

    XIRR with ebbs and flows of capital

    UPDATE: Thank you so much for the help. The solution was that we all missed the fact that we were trying to calculate on a cumulative cash flow rather than the monthly amount. Essentially user error on our part. I am sorry for the inconvenience, we definitely should have caught that.

    I think I may have reached the limits of the XIRR function in Excel. I have attached a sample cash flow that contains the ebbs and flows of the required capital needed. However, despite showing a profit at the end of the flow (December 2027) it is returning a 0% IRR. I know this is wrong, but I have not been able to find a work around. Is there a limit to the length of time an XIRR can run? Any coaching or guidance would be appreciated. Thanks!
    Last edited by NSAdventurer; 08-28-2018 at 12:49 PM.

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

    Re: XIRR with ebbs and flows of capital

    I could not find a cell in your sample file with an XIRR() function. I tried my own, I cannot replicate the problem. If I enter =XIRR(C6:EP6,C2:EP2) into a cell, I get about 6.2%. I know that Excel's implementation of XIRR() is a little unstable, and other spreadsheets have a more stable algorithm, but I get the same result from LibreOffice Calc as well. Perhaps calculation is set to manual? Or you are making some other error in entering your XIRR() function? Or perhaps I misunderstood?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

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

    Re: XIRR with ebbs and flows of capital

    Quote Originally Posted by NSAdventurer View Post
    I think I may have reached the limits of the XIRR function in Excel. [....] it is returning a 0% IRR. [....] Is there a limit to the length of time an XIRR can run?
    AFAIK, there is no limit on time span or on the number of cashflows, other than computational limitations of the internal binary representation, which might arise.

    Also, what appears to be 0% is probably about +/-2.98E-09. Format as Scientific. In my experience, that is another error state like #NUM and #DIV/0, which Excel XIRR returns typically to indicate the need for a "guess" parameter.

    However, as "MrShorty" notes, =XIRR(C6:EP6,C2:EP2) seems to work in you example Excel file. It returns 6.19595676660538%. We can confirm the correctness by noting that
    =XNPV(C8,C6:EP6,C2:EP2) is 10.58, which is relatively close to zero for the magnitude of the cash flows. In fact, my own XIRR implementation returns 6.19595689336901%, a difference of about 0.0000001268% (very small). With my XIRR, XNPV returns about -5.51E-07, which is truly close to zero.

    So you need to provide an example where XIRR does not return a reasonable result, as demonstrated by using XNPV.

    Caveat: Excel XNPV does not allow a negative discount rate; a defect. In that case, use the following formula (works for positive discount rates, as well):

    =SUMPRODUCT(C6:EP6/(1+C8)^((C2:EP2-C2)/365))
    Last edited by joeu2004; 08-28-2018 at 02:12 AM. Reason: minor improvements

+ 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. XIRR formula not working when adding extra cash flows
    By lp12345 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2018, 02:23 AM
  2. Replies: 5
    Last Post: 07-09-2017, 03:24 AM
  3. IRR with Missing Cash Flows???
    By $J$L$G in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-05-2017, 03:12 AM
  4. [SOLVED] Excel Macro - Cash flows
    By Camarcher in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 07-13-2015, 12:17 AM
  5. formula accounting for cash flows.
    By Gaunta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2011, 06:54 PM
  6. XIRR: Different cash flows but same answer. Why?
    By Guy Hoffman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-24-2007, 11:37 AM
  7. [SOLVED] IRR for 2 cash flows
    By Maxymus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-12-2006, 08:45 PM

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