Skip to content

type

Numeric code identifying the type of a value.

v = type(value)

Returns: 1 (number), 2 (text), 4 (logical), 16 (error), 64 (array). Used in formulas that need to branch on argument type.

type(42) % 1
type('hello') % 2
  • istext — Test whether a value is text.
  • iserror — Test whether a value is any error.
  • class — Class name of an object.