Difference between revisions of "Documentation/How Tos/Calc: ISERROR function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
Line 3: Line 3:
 
== ISERROR  ==
 
== ISERROR  ==
 
Tests for any error value.
 
Tests for any error value.
 
  
 
=== Syntax: ===
 
=== Syntax: ===
Line 12: Line 11:
  
 
:Use the <tt>'''ISERR'''</tt> function to test for any errors <u>except</u> <tt>'''#N/A'''</tt>.
 
:Use the <tt>'''ISERR'''</tt> function to test for any errors <u>except</u> <tt>'''#N/A'''</tt>.
 
  
 
=== Example: ===
 
=== Example: ===
Line 23: Line 21:
 
<tt>'''ISERROR(NA())'''</tt>
 
<tt>'''ISERROR(NA())'''</tt>
 
: returns <tt>'''TRUE'''</tt>, because <tt>'''NA()'''</tt> returns the <tt>'''#N/A'''</tt> error.  
 
: returns <tt>'''TRUE'''</tt>, because <tt>'''NA()'''</tt> returns the <tt>'''#N/A'''</tt> error.  
 
  
 
=== See also: ===
 
=== See also: ===

Revision as of 13:04, 19 January 2008


ISERROR

Tests for any error value.

Syntax:

ISERROR(value)

Returns TRUE if value refers to or evaluates to any error value, including #N/A, and FALSE otherwise.


Use the ISERR function to test for any errors except #N/A.

Example:

ISERROR(SQRT(-1))

returns TRUE, because taking the squareroot of -1 is an error.

ISERROR(C5)

where C5 contains 123, returns FALSE, because 123 is not an error.

ISERROR(NA())

returns TRUE, because NA() returns the #N/A error.

See also:

ISERR function, ISNA function, NA function

Information functions

Personal tools