ReferenceFunctionsInformation Functions
TYPE
Returns an Excel TYPE code describing the value category.
Summary
Returns an Excel TYPE code describing the value category.
Remarks
- Codes:
1number,2text,4logical,64array. - Errors are propagated unchanged instead of returning
16. - Blank values map to numeric code
1in this implementation.
Examples
Text type code
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
2
Boolean type code
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
4
Related functions
FAQ
How are errors handled by TYPE?
Errors are propagated unchanged instead of returning Excel's error type code 16.
Runtime metadata
Category
Information
Signature
TYPE(arg1: Any)Arity
min 1, max 1
Arguments
arg1Any · Scalar
Caps
PURE
Source