Difference between revisions of "Documentation/How Tos/Calc: ISNUMBER function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→Issues:) |
m |
||
Line 3: | Line 3: | ||
== ISNUMBER == | == ISNUMBER == | ||
Tests if a cell contains a number. | Tests if a cell contains a number. | ||
− | |||
=== Syntax: === | === Syntax: === | ||
Line 12: | Line 11: | ||
: <tt>'''ISNUMBER'''</tt> currently (OOo2.3) considers the logical values <tt>'''TRUE'''</tt> and <tt>'''FALSE'''</tt> as numbers. See '''Issues''' below. | : <tt>'''ISNUMBER'''</tt> currently (OOo2.3) considers the logical values <tt>'''TRUE'''</tt> and <tt>'''FALSE'''</tt> as numbers. See '''Issues''' below. | ||
− | |||
=== Example: === | === Example: === | ||
Line 24: | Line 22: | ||
<tt>'''ISNUMBER(D5)'''</tt> | <tt>'''ISNUMBER(D5)'''</tt> | ||
: where D5 contains <tt>'''99'''</tt>, returns <tt>'''TRUE'''</tt>, because D5 contains a number. | : where D5 contains <tt>'''99'''</tt>, returns <tt>'''TRUE'''</tt>, because D5 contains a number. | ||
− | |||
=== See also: === | === See also: === | ||
Line 34: | Line 31: | ||
'''[[Documentation/How_Tos/Calc: Information functions|Information functions]]''' | '''[[Documentation/How_Tos/Calc: Information functions|Information functions]]''' | ||
− | |||
=== Issues: === | === Issues: === | ||
* <tt>'''ISNUMBER(A1)'''</tt> where A1 is a logical value, returns <tt>'''TRUE'''</tt>. This behaviour is not compatible with other competing spreadsheets. See [http://qa.openoffice.org/issues/show_bug.cgi?id= issue 84266]. | * <tt>'''ISNUMBER(A1)'''</tt> where A1 is a logical value, returns <tt>'''TRUE'''</tt>. This behaviour is not compatible with other competing spreadsheets. See [http://qa.openoffice.org/issues/show_bug.cgi?id= issue 84266]. |
Revision as of 13:00, 19 January 2008
ISNUMBER
Tests if a cell contains a number.
Syntax:
ISNUMBER(value)
- Returns TRUE if value is a number or logical value and FALSE otherwise.
- ISNUMBER currently (OOo2.3) considers the logical values TRUE and FALSE as numbers. See Issues below.
Example:
ISNUMBER(123)
- returns TRUE.
ISNUMBER(“dog”)
- returns FALSE.
ISNUMBER(D5)
- where D5 contains 99, returns TRUE, because D5 contains a number.
See also:
ISTEXT function, ISLOGICAL function, ISBLANK function, ISERROR function, ISFORMULA function
Issues:
- ISNUMBER(A1) where A1 is a logical value, returns TRUE. This behaviour is not compatible with other competing spreadsheets. See issue 84266.