Documentation/How Tos/Calc: TYPE function

From Apache OpenOffice Wiki
< Documentation‎ | How Tos
Revision as of 20:18, 7 December 2007 by Drking (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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. When a cell contains both an error and a formula, 16 (error value) 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.


See also:

CELL function

Information functions

Personal tools