GNOME Bugzilla – Bug 614147
XIRR calculates incorrect result
Last modified: 2010-03-28 12:28:39 UTC
I have a range of dates and cash flows where XIRR() evaluates to exactly -100.00% which is not near the correct answer. The search algorithm is not converging for this case. This is not a pathological case, the values are completely reasonable from real-life.
Created attachment 157300 [details] the offending list of dates and values These are the dates and cash-flows for which XIRR evaluates incorrectly. The file is a gnumeric spreadsheet file.
I see this.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report. This was a slightly more general problem with goal seek and NaN values. You can work around it by supplying a third argument to xirr. It is a guess as to what the result should be. 10% is the default. Try 0 or -5%.