TYPE function

Category: Information
Introduced: Excel 2003

Summary

Returns a number indicating the data type of a value

Syntax

TYPE(value) The TYPE function syntax has the following arguments:
• Value Required. Can be any Microsoft Excel value, such as a number, text, logical value, and so on.
Number | 1
Text | 2
Logical value | 4
Error value | 16
Array | 64
Compound data | 128

Example

=TYPE(A2)
=TYPE("Mr. "&A2)
=TYPE(2+A2)
=(2+A2)
=TYPE({1,2;3,4})

Microsoft Support Page

https://support.microsoft.com/en-us/office/type-function-45b4e688-4bc3-48b3-a105-ffa892995899

Back to Functions