1. Home
  2. Functions
  3. Information
  4. TYPE

TYPE function

Returns a number for the type of a value: 1 number, 2 text, 4 logical, 16 error, 64 array, 128 lambda.

Syntax

=TYPE(value)

Arguments

ArgumentRequiredDescription
valueRequiredThe value to check

How to use TYPE

TYPE takes 1 required argument. Type =TYPE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=TYPE(2)Result 1
=TYPE("Smith")Result 2
=TYPE({1,2})Result 64

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.