TYPE(value)
value: a value
TYPE returns a number indicating the data type of value:
1 = number
2 = text
4 = boolean
16 = error
64 = array
This function is Excel compatible.