GNOME Bugzilla – Bug 333620
xirr gets out-of-sync when text appears in one column only
Last modified: 2006-03-06 17:44:52 UTC
The xirr function treats text as a numeric value and computes wrong results. See the example below: In column B, xirr is expected to be computed correctly. In column C, xirr treats "text" as a number, giving a different result. In column D, I have let "Goal Seek..." compute the value which xirr sees for "text". A B C D 01/01/2000 -5000 -5000 -5000 16/02/2000 -10 -10 -10 28/11/2000 0 text 24.649709636828 27/06/2001 -23 -23 -23 19/01/2002 567 567 567 23/05/2003 5000 5000 5000 xirr: 3.16% 5.20% 5.20%
1. I don't get the same value in the D column as you do. There might be several possible values for XIRR, so that may not be important. 2. XIRR does not invent a value for "text" -- it simply ignores the cell. That in turn means that the other amounts get applied to the wrong dates. No good, of course.
Excel parses strings to numbers and throws #VALUE! if that fails. That avoids the sync problem.
fixed in cvs.