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

From Apache OpenOffice Wiki
Jump to: navigation, search
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Documentation/MasterTOC
+
{{DISPLAYTITLE:ISERROR function}}
|bookid=1234'''
+
{{Documentation/CalcFunc InformationTOC
|booktitle=<div style="padding: 8px; font-size: 140%; font-weight: bold; background-color: #9BC0F5;">CALC FUNCTIONS</div>
+
|ShowPrevNext=block
|ShowParttitle=block|parttitle=[[Documentation/How_Tos/Calc:_Information_functions|<div style="font-size: 140%;">Information Functions]]
+
|PrevPage=Documentation/How_Tos/Calc:_ISERR_function
|ShowNextPage=block|NextPage=Documentation/How_Tos/Calc:_ISEVEN_function
+
|NextPage=Documentation/How_Tos/Calc:_ISEVEN_function
|ShowPrevPage=block|PrevPage=Documentation/How_Tos/Calc:_ISERR_function
+
}}__NOTOC__
|ShowPrevPart=block|PrevPart=Documentation/How_Tos/Calc:_Financial_functions
+
|ShowNextPart=block|NextPart=Documentation/How_Tos/Calc:_Logical_functions
+
|toccontent= <div style="padding: 4px; font-size: 130%; font-weight: hidden; background-color:#DCE9FC;">FUNCTIONS</div>
+
 
+
* [[Documentation/How_Tos/Calc:_CELL_function|<div style="font-size: 120%;">Cell]]
+
* [[Documentation/How_Tos/Calc:_CURRENT_function|<div style="font-size: 120%;">Current]]
+
* [[Documentation/How_Tos/Calc:_FORMULA_function|<div style="font-size: 120%;">Formula]]
+
* [[Documentation/How_Tos/Calc:_ISBLANK_function|<div style="font-size: 120%;">Isblank]]
+
* [[Documentation/How_Tos/Calc:_ISERR_function|<div style="font-size: 120%;">Iserr]]
+
* [[Documentation/How_Tos/Calc:_ISERROR_function|<div style="font-size: 120%; border-style: double; border-color:#778899;">Iserror]]
+
* [[Documentation/How_Tos/Calc:_ISEVEN_function|<div style="font-size: 120%;">Iseven]]
+
* [[Documentation/How_Tos/Calc:_ISEVEN_ADD_function|<div style="font-size: 120%;">Iseven Add]]
+
* [[Documentation/How_Tos/Calc:_ISLOGICAL_function|<div style="font-size: 120%;">Islogical]]
+
* [[Documentation/How_Tos/Calc:_ISNA_function|<div style="font-size: 120%;">Isna]]
+
* [[Documentation/How_Tos/Calc:_ISNONTEXT_function|<div style="font-size: 120%;">Isnontext]]
+
* [[Documentation/How_Tos/Calc:_ISNUMBER_function|<div style="font-size: 120%;">Isnumber]]
+
* [[Documentation/How_Tos/Calc:_ISODD_function|<div style="font-size: 120%;">Isodd]]
+
* [[Documentation/How_Tos/Calc:_ISODD_ADD_function|<div style="font-size: 120%;">Isodd Add]]
+
* [[Documentation/How_Tos/Calc:_ISREF_function|<div style="font-size: 120%;">Isref]]
+
* [[Documentation/How_Tos/Calc:_ISTEXT_function|<div style="font-size: 120%;">Istext]]
+
* [[Documentation/How_Tos/Calc:_N_function|<div style="font-size: 120%;">N]]
+
* [[Documentation/How_Tos/Calc:_NA_function|<div style="font-size: 120%;">Na]]
+
* [[Documentation/How_Tos/Calc:_TYPE_function|<div style="font-size: 120%;">Type]]
+
}}__TOC__
+
  
 
== ISERROR  ==
 
== ISERROR  ==
Line 43: 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 54: Line 30:
 
* <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.
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: ISERR function|ISERR]]
 
* [[Documentation/How_Tos/Calc: ISERR function|ISERR]]
 
* [[Documentation/How_Tos/Calc: ISNA function|ISNA]]
 
* [[Documentation/How_Tos/Calc: ISNA function|ISNA]]

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