TYPE function in Excel
In excel, =TYPE() function is used to check the datatype of a data stored in a cell.
Syntax: =TYPE(value), where value is the data whose data type we need to check
The type function returns a numeric value, representing the datatype of the data as
follows:-
TypeCode Meaning
1 Number
2 Text
4 Boolean/logical
16 Error
64 Array
For example, =TYPE(50), returns 1 and =TYPE(“NINJA”), returns 2
Also note that Excel date and time are numbers, so they will return 1.