Returns an integer representing the data type of a value.
Hàm này hoạt động trong Google Sheets giống như trong Excel — cùng cú pháp và đối số.
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)Kết quả: 1
Returns 1 because 100 is a number.
=TYPE("Hello")Kết quả: 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!.