Function · Information

Excel TYPE function

The Excel TYPE function returns a code for the kind of value. A number is 1, text is 2, TRUE or FALSE is 4, an error is 16, and an array is 64.

All current Excel versions. Also in Excel for the web and Google Sheets.

Syntax =TYPE(value)

TYPE
=TYPE(143.6)

Arguments

NameRequiredWhat to pass
valueRequiredThe value to classify. The codes are 1 number, 2 text, 4 logical, 16 error, and 64 array.

Examples

The January utility bill as a number

=TYPE(143.6)

Result 1

=TYPE(B1)B2
Type
AB
1Value143.60
2Type code1
A picture of the sheet, not a live calculator.

TYPE returns one number that names the kind of value. 143.60 is 1, a number. Austin is 2, text. TRUE and FALSE are 4. Any error, including #N/A, is 16. An array constant such as {1,2} is 64. A date is a number, so it is 1, not a separate code.

ISNUMBER, ISTEXT, and ISERROR answer one question each. TYPE answers all of them with a code, which is why older sheets use it inside CHOOSE. It does not tell a blank from a number or from text by a special code: a blank cell is treated as 1 in some contexts because Excel coerces the empty cell to 0 when the value is read. Test ISBLANK first when emptiness matters. ROMAN returns text, so TYPE of ROMAN(2026) is 2. The cell reads MMXXVI.