Information All versions ◉ 30 views

=TYPE()

Returns the type of value. Use TYPE when the behavior of another function depends on the type of value in a particular cell.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=TYPE(value)
Hover argument names in the table for details.
Output typeNumber
Popularity8 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =TYPE() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
📥 Download TYPE.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

🧠 🧠 Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
value Any type 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.

▣ Examples

▦ Data
CellValue
A2 Smith
A3 Smith
Returns the type of the value in A2. The Text type is indicated by 2. =TYPE(A2)
Result: 2
Returns the type of "Mr. Smith, which is Text. =TYPE("Mr. "&A2)
Result: 2
Returns the type of the formula in C6, which returns 16, the type for the error message #VALUE! The error message #VALUE! is shown in C7. =TYPE(2+A2)
Result: 16
The error value returned by the formula =(2+A2), which is used in C2. =(2+A2)
Result: #VALUE!
Returns the type of an array constant, which is 64. =TYPE({1,2;3,4})
Result: 64

§ Remarks

  • TYPE is most useful when you are using functions that can accept different types of data, such as ARGUMENT and INPUT. Use TYPE to find out what type of data is returned by a function or formula.
  • You cannot use TYPE to determine whether a cell contains a formula. TYPE only determines the type of the resulting, or displayed, value. If value is a cell reference to a cell that contains a formula, TYPE returns the type of the formula's resulting value.

✦ Tips

  • TYPE is most useful when you are using functions that can accept different types of data, such as ARGUMENT and INPUT. Use TYPE to find out what type of data is returned by a function or formula.
  • You cannot use TYPE to determine whether a cell contains a formula. TYPE only determines the type of the resulting, or displayed, value. If value is a cell reference to a cell that contains a formula, TYPE returns the type of the formula's resulting value.

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.