Skip to content
Excel

TYPE function in Excel

Returns a number indicating the data type of a value

=TYPE(value)

TYPE syntax and parameters

One argument, one required.

  • valueanyRequired

    Can be any Microsoft Excel value, such as a number, text, logical value, and so on.

TYPE examples

Formulas you'll actually reuse.

  1. 1 = number, 2 = text, 4 = logical, 16 = error, 64 = array:

    =TYPE(C2)

    Result1

  2. Flag amounts that arrived as text:

    =IF(TYPE(C2) = 2, "amount stored as text", "ok")

    Result"ok"

TYPE in Google Sheets

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…