Returns an integer representing the data type of a value.
This function works the same in Google Sheets as it does in Excel — same syntax and arguments.
TYPE(value)The TYPE function identifies the data type of a given value. It returns 1 for numbers, 2 for text, 4 for logical values, 16 for error values, and 64 for arrays.
=TYPE(100)Result: 1
Returns 1 because 100 is a number.
=TYPE("Hello")Result: 2
Returns 2 because "Hello" is a text string.
A result of 16 indicates that the value provided is an error value, such as #N/A or #VALUE!.