Difference between revisions of "Documentation/How Tos/Calc: ISERR function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
|||
Line 3: | Line 3: | ||
== ISERR == | == ISERR == | ||
Tests for an error value other than '''#N/A'''. | Tests for an error value other than '''#N/A'''. | ||
− | |||
=== Syntax: === | === Syntax: === | ||
Line 12: | Line 11: | ||
:Use the <tt>'''ISERROR'''</tt> function to test for any errors <u>including</u> <tt>'''#N/A'''</tt>. | :Use the <tt>'''ISERROR'''</tt> function to test for any errors <u>including</u> <tt>'''#N/A'''</tt>. | ||
− | |||
=== Example: === | === Example: === | ||
Line 23: | Line 21: | ||
<tt>'''ISERR(NA())'''</tt> | <tt>'''ISERR(NA())'''</tt> | ||
: returns <tt>'''FALSE'''</tt>, because the error value <tt>'''#N/A'''</tt> is ignored by this function. | : returns <tt>'''FALSE'''</tt>, because the error value <tt>'''#N/A'''</tt> is ignored by this function. | ||
− | |||
=== See also: === | === See also: === |
Revision as of 13:03, 19 January 2008
ISERR
Tests for an error value other than #N/A.
Syntax:
ISERR(value)
- Returns TRUE if value refers to or evaluates to an error value other than the Not Available error #N/A, and FALSE otherwise.
- Use the ISERROR function to test for any errors including #N/A.
Example:
ISERR(SQRT(-1))
- returns TRUE, because taking the squareroot of -1 is an error.
ISERR(C5)
- where C5 contains 123, returns FALSE, because 123 is not an error.
ISERR(NA())
- returns FALSE, because the error value #N/A is ignored by this function.