Google Sheets
TYPE function in Google Sheets
Returns a number associated with the type of data passed into the function.
=TYPE(value)TYPE syntax and parameters
One argument, one required.
- valueanyRequired
The data whose type is to be determined.
TYPE examples
Formulas you'll actually reuse.
1 = number, 2 = text, 4 = logical, 16 = error, 64 = array:
=TYPE(C2)Result
1Flag amounts that arrived as text:
=IF(TYPE(C2) = 2, "amount stored as text", "ok")Result
"ok"
TYPE in Excel
Same name — your formula ports as-is.
Try TYPE in the playground
Edit the example — nothing to install.
Preloaded with the TYPE formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Google Sheets gets this done.
- CELLReturns the requested information about the specified cell.InfoExcel
- ERROR.TYPEReturns a number corresponding to the error value in a different cell.InfoExcel
- ISBLANKChecks whether the referenced cell is empty.InfoExcel
- ISDATEReturns whether a value is a date.InfoNo Excel equivalent
- ISEMAILChecks whether a value is a valid email address.InfoNo Excel equivalent
- ISERRChecks whether a value is an error other than `#N/A`.InfoExcel