+ Reply to Thread
Results 1 to 7 of 7

XIRR fail -- cash flows alternate between positive and negative

  1. #1
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    XIRR fail -- cash flows alternate between positive and negative

    Hi - I'm having a hard time determining the IRR on a project with cashflows that are sometimes positive (+) and sometimes negative (-). I understand this is a limitation of the XIRR formula (through google searches), but I can't find a proper alternative to the XIRR formula.
    My challenge is to find the IRR for these irregular and alternating (+/-) cash flows.
    The attached sample workbook shows my problem.
    Thanks in advance for any help!
    Jeff
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Re: XIRR fail -- cash flows alternate between positive and negative

    I attached a new sample workbook with the following clarification: my current XIRR formula is returning a 232554% return (wildly wrong!).
    I believe I need to use XIRR because my cashflows are inconsistent; however, the alternating +/- cashflows are messing up my XIRR formula.
    Thanks much.
    Jeff
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: XIRR fail -- cash flows alternate between positive and negative

    Quote Originally Posted by macrorookie View Post
    my current XIRR formula is returning a 232554% return (wildly wrong!).
    What makes you think that 232554% is wrong? What IRR do you expect?

    Since your data is monthly (except for the first cash flow), you can use Excel IRR as follows:

    =IRR((D13, F13:BF13))

    That returns 90.4318425005324%.

    (The syntax (D13, F13:BF13) creates a "range union". Excel IRR is one of the few functions that supports that syntax. In effect, I pull the initial cash flow on 12/31/22 into 1/1/23 -- a one-day difference compared to XIRR. So for Excel IRR, the cash flow series is effectively B13,F13,G13,...,BF13.)

    But that is a monthly IRR. Excel XIRR returns an annual IRR.

    We can annualize the monthly IRR as follows:

    =(1 + IRR((D13, F13:BF13)))^12 - 1

    That returns 227344.182337612%, which is "close" to the XIRR result.

    -----

    I suspect that your cash flows are incorrect.

    What do they represent?

    What is -595445 on 12/31/22?

    What is 4011719.83 on 5/1/23?

    If negative numbers are outflows (see B7), why does your cash flow series start with an "outflow" (loss?) and end with an inflow?

    -----

    And just a curiosity.... Why do your "dollar" amounts have more than 2 decimal places?

    They appear to be the result of calculations.

    For example, I13 is 4011719.83171275 + 2.79E-9.

    What are you calculating?
    Last edited by curiouscat408; 01-15-2023 at 09:59 PM.

  4. #4
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Re: XIRR fail -- cash flows alternate between positive and negative

    Thank you, curiouscat408! I made a mistake on my 12/31/22 date. It should be 12/1/222, thereby creating consistent monthly increments. You raise a great point about the monthly IRR, versus the annual IRR - that solves a big mystery for me (thank you!).

    I believe my cash flows are correct. This is for a real estate development project. Therefore the 12/1/22 cash outflow is for sunk costs, then pre-sales happen (inflows), and then development starts (outflows), until final sales happen (inflows).

    If I calculate the NPV for these cash flows, I get 70.5%, but as you point out that's a monthly number (525% annualized). I just need to create a good explanation for why the IRR/NPV is so high.

  5. #5
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: XIRR fail -- cash flows alternate between positive and negative

    Quote Originally Posted by macrorookie View Post
    my 12/31/22 date [....] should be 12/1/22
    So:

    XIRR(D13:BF13,D11:BF11) returns 62103.9447021484%
    and
    IRR(D13:BF13) returns 70.5110946805731%

    -----
    Quote Originally Posted by macrorookie View Post
    If I calculate the NPV for these cash flows, I get 70.5%, but as you point out that's a monthly number (525% annualized).
    Errata.... Monthly 70.5% -- actually IRR(D13:BF13) -- annualizes to 60299.2729556859% -- not 525% (sic) or even 525 (assuming a typo).

    The formula is =(1 + IRR(D13:BF13))^12 - 1.

    And arguably, even if you think we annualize by 12*IRR(D13:BF13), the result is 846.133136166878% -- still not 525% (sic).

    -----

    And the NPV can be anything that you want, depending on the required discount rate.

    But more to the point: it returns a dollar amount, not a percentage.

    In fact, I was just going to follow up my previous comments by noting that the real validation of the results from XIRR and Excel IRR is the fact that XNPV(xirr, D13:BF13,D11:BF11) and NPV(xlIrr, D13:BF13) return about zero.

    Arguably, it is possible that there are other IRRs that we might perceive to be "better".

    But in this case, I looked at the NPV curves, and I believe there aren't.
    Last edited by curiouscat408; 01-16-2023 at 03:17 AM.

  6. #6
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Re: XIRR fail -- cash flows alternate between positive and negative

    Wow curiouscat408 - that is a great explanation! Now I know more about Excel and discounted cash flows. Thank you so much!

  7. #7
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: XIRR fail -- cash flows alternate between positive and negative

    [.... deleted ....]
    Last edited by curiouscat408; 01-22-2023 at 03:06 PM.

+ 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 - naming ranges to include monthly cash flows only
    By lynnsong986 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2020, 05:09 PM
  2. 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
  3. Replies: 5
    Last Post: 07-09-2017, 03:24 AM
  4. 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
  5. [SOLVED] NPV Calc appears incorrect with a large # of negative cash flows
    By StanJ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 09:05 PM
  6. [SOLVED] NPV Calc appears incorrect with a large # of negative cash flows
    By MikeW in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 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