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

From Apache OpenOffice Wiki
Jump to: navigation, search
(See also:)
m
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE:ISERROR function}}
 +
{{Documentation/CalcFunc InformationTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_ISERR_function
 +
|NextPage=Documentation/How_Tos/Calc:_ISEVEN_function
 +
}}__NOTOC__
  
 
== ISERROR  ==
 
== ISERROR  ==
Line 14: Line 19:
 
=== Example: ===
 
=== Example: ===
 
<tt>'''ISERROR(SQRT(-1))'''</tt>
 
<tt>'''ISERROR(SQRT(-1))'''</tt>
: returns <tt>'''TRUE'''</tt>, because taking the squareroot of -1 is an error.
+
: returns <tt>'''TRUE'''</tt>, because taking the square root of -1 is an error.
  
 
<tt>'''ISERROR(C5)'''</tt>
 
<tt>'''ISERROR(C5)'''</tt>
Line 22: Line 27:
 
: 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: ===
+
=== Issues: ===
'''[[Documentation/How_Tos/Calc: ISERR function|ISERR]]''',
+
* <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.
'''[[Documentation/How_Tos/Calc: ISNA function|ISNA]]''',
+
'''[[Documentation/How_Tos/Calc: NA function|NA]]'''
+
  
'''[[Documentation/How_Tos/Calc: Information functions|Information functions]]'''
+
{{SeeAlso|EN|
 +
* [[Documentation/How_Tos/Calc: ISERR function|ISERR]]
 +
* [[Documentation/How_Tos/Calc: ISNA function|ISNA]]
 +
* [[Documentation/How_Tos/Calc: NA function|NA]]
  
[[Documentation/How_Tos/Calc: Functions listed alphabetically|'''Functions listed alphabetically''']],
+
* [[Documentation/How_Tos/Calc: Information functions|Information functions]]
[[Documentation/How_Tos/Calc: Functions listed by category|'''Functions listed by category''']]
+
  
=== Issues: ===
+
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
* <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.
+
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 +
[[Category: Documentation/Reference/Calc/Information functions]]

Latest revision as of 13:15, 31 January 2024

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 square root 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.

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.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_ISERROR_function&oldid=259806"
Views
Personal tools
Navigation
Tools
In other languages