GNOME Bugzilla – Bug 445591
IFERROR
Last modified: 2008-04-11 22:53:54 UTC
MS Office 2007 introduced an IFERROR function, we may want to implement it in Gnumeric.
Reference: http://office.microsoft.com/en-us/excel/HA012317651033.aspx
What is the value of =IFERROR(0,1/0) ?
I don't have access to IFERROR so I can't say what it indeed returns. (There is discussion in the OpenFormula SC of OASIS regarding incusion of this function.) The way I understand it, it should evaluate the first argument, find 0, determine it is not an error from among N/A VALUE! REF! DIV/0 NUM! NAME? NULL! and so return 0.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report. I took a qualified guess on the semantics. If I am not mistaken, then we can now replace if(iserror(expr),alt,expr) by iferror(expr,alt) for purposes of calculation. (Although we do not have the machinery to do so at the present time.)