Information
All versions
◉ 15 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 — Coming soon
▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ 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)
🧠 🧠 Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
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
نوع مقدار سلول A2 را برمیگرداند؛ نوع متن با عدد ۲ نشان داده میشود
=TYPE(A2)
نوع مقدار "Mr. "&A2 را برمیگرداند که متن است
=TYPE("Mr. "&A2)
نوع فرمول 2+A2 را برمیگرداند که ۱۶ است، نوع پیام خطای #VALUE! پیام خطای #VALUE! در سلول دیگر نمایش داده میشود
=TYPE(2+A2)
مقدار خطای برگشتی از فرمول =(2+A2) که در مثال استفاده شده است
=(2+A2)
نوع ثابت آرایهای {1,2;3,4} را برمیگرداند که ۶۴ است
=TYPE({1,2;3,4})
✦ 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!