Difference between revisions of "Documentation/How Tos/Calc: TYPE function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
||
Line 20: | Line 20: | ||
{{Documentation/SeeAlso| | {{Documentation/SeeAlso| | ||
− | * [[Documentation/How_Tos/Calc: CELL function|CELL]] | + | * [[Documentation/How_Tos/Calc: CELL function|CELL]] |
− | * [[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 alphabetically|Functions listed alphabetically]] | ||
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} |
Revision as of 14:45, 26 February 2009
TYPE
Returns the type of value (number, text, etc.).
Syntax:
TYPE(value)
- Returns the type of value as a number: 1 = number, 2 = text, 4 = logical value, 8 = formula, 16 = error value.
- If a cell contains both an error and a formula, 16 (error value) is returned.
- A blank cell is classed as a number here, and 1 is returned.
Example:
TYPE(C2)
- where cell C2 contains dog returns 2, because dog is text.
TYPE(C3)
- where cell C3 contains =NA() returns 16, because NA() returns the error value #N/A.