+ Reply to Thread
Results 1 to 8 of 8

XIRR Formula error

  1. #1
    Registered User
    Join Date
    04-11-2024
    Location
    Louisiana
    MS-Off Ver
    MS Office Professional Plus 2019
    Posts
    3

    XIRR Formula error

    I am getting a value of 0.00000030% when using XIRR formula with no guess. Any help is appreciated
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    498

    Re: XIRR Formula error

    It's the formatting of your cell.
    The result is 2.98023223876953E-09 which is a zero I guess but you get this value potentially due to floating point calculation.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: XIRR Formula error

    To 'fix' floating point errors, you can use ROUND:

    =ROUND(XIRR(A2:GR2,A1:GR1),2)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    04-11-2024
    Location
    Louisiana
    MS-Off Ver
    MS Office Professional Plus 2019
    Posts
    3

    Re: XIRR Formula error

    Thank you!

    So, 0% is an acceptable output? I was under the impression that 0 as an output for XIRR meant that there was an error.

  5. #5
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    498

    Re: XIRR Formula error

    Well, things get a bit complicated here and maybe someone with a bit more math background can step in.

    You have a polynome of a very high order here; a polynome of degree n = 200 can have up to 200 zeros, i.e. IRR if I remember correctly.
    But it may have as well only 1 or 2 (or none) which are usually the desired real-life cases.

    Looking at your figures, the sum of all numbers is around -225,796.65 which points to a serverly negativ IRR/zero, and potentially infinitely large negative.
    However, at the same time you initial value is -0.00000001.
    The guess of an IRR
    Please Login or Register  to view this content.
    yields a #NUM!-error which might indicate that there's no solution/zero/IRR to your number pattern.
    And the 2.98023223876953E-09 result that you see may be more like the Excel result of 'giving up', i.e. not being able to find a solution within a reasonable amount of iterations (which I think follows the Newton or similar approach).

  6. #6
    Registered User
    Join Date
    04-11-2024
    Location
    Louisiana
    MS-Off Ver
    MS Office Professional Plus 2019
    Posts
    3

    Re: XIRR Formula error

    Thank you! I felt like I was going crazy because I even tried getting the NPV to put a guess into the XIRR formula and was getting 0 there too.


    Attachment 866005

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,572

    Re: XIRR Formula error

    Selecting attachment 866005 results in the following message: "Invalid Attachment specified. If you followed a valid link, please notify the administrator".
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

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

    Re: XIRR Formula error

    I'm not knowledgeable in financial modeling, but I understand that XIRR() attempts to determine a rate that results in an XNPV() of 0. If I open the file in the OP and enter =XNPV(A6,$A$2:$GR$2,$A$1:$GR$1) into B6, and then enter different rates in A6, it appears that the XNPV() function for this data set approaches 0 asymptotically as the rate approaches infinity (rate=-99%, xnpv=-infinity; rate=10,000,000,000%, xnpv=-1.8E-5). For the data given, are you certain there is a solution? It appears to me that there is not a solution for this data set, and XIRR() returns that 3E-9 result as an indicator that it failed to find a valid solution (I'm not sure why Excel doesn't return an error value here).

    Whenever I encounter these kinds of questions in the forum, the first thing I do is explore the behavior of the XNPV() function. That usually gives an indication of what the solution might be, and when no solution exists.
    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. XIRR Calculation error
    By rsd007 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-30-2022, 02:09 AM
  2. XIRR Num Error
    By jeduardomalo in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 11-02-2021, 01:01 PM
  3. XIRR formula error returning tiny decimal (2.98E-09)
    By jliyanage in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-06-2021, 12:00 AM
  4. XIRR - Array Formula Error
    By Dtark513 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-31-2013, 04:50 PM
  5. [SOLVED] xirr value error
    By CC in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-18-2006, 07:15 PM
  6. [SOLVED] #VALUE error with XIRR
    By bdyer30 in forum Excel General
    Replies: 7
    Last Post: 01-24-2006, 12:35 PM
  7. [SOLVED] XIrr in VBA error
    By CyberBuzzard in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-22-2005, 04:25 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