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

From Apache OpenOffice Wiki
Jump to: navigation, search
(added Issues section)
(See also:)
Line 28: Line 28:
  
 
'''[[Documentation/How_Tos/Calc: Information functions|Information functions]]'''
 
'''[[Documentation/How_Tos/Calc: Information functions|Information functions]]'''
 +
 +
[[Documentation/How_Tos/Calc: Functions listed alphabetically|'''Functions listed alphabetically''']],
 +
[[Documentation/How_Tos/Calc: Functions listed by category|'''Functions listed by category''']]
  
 
=== Issues: ===
 
=== Issues: ===
 
* <tt>'''CHOOSE(0;"A";"B";"C";"D")'''</tt> returns <tt>'''Err:502'''</tt> (correctly - the index is out of range) but  <tt>'''ISERROR(CHOOSE(0;"A";"B";"C";"D"))'''</tt> also returns <tt>'''Err:502'''</tt>, rather than <tt>'''TRUE'''</tt>. The error is propagated rather than evaluated.
 
* <tt>'''CHOOSE(0;"A";"B";"C";"D")'''</tt> returns <tt>'''Err:502'''</tt> (correctly - the index is out of range) but  <tt>'''ISERROR(CHOOSE(0;"A";"B";"C";"D"))'''</tt> also returns <tt>'''Err:502'''</tt>, rather than <tt>'''TRUE'''</tt>. The error is propagated rather than evaluated.

Revision as of 06:24, 13 September 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

Functions listed alphabetically, Functions listed by category

Issues:

  • CHOOSE(0;"A";"B";"C";"D") returns Err:502 (correctly - the index is out of range) but ISERROR(CHOOSE(0;"A";"B";"C";"D")) also returns Err:502, rather than TRUE. The error is propagated rather than evaluated.
Personal tools