Skip to main content

Excel TYPE Function

The TYPE function returns the type of the given value.

type function 1


Syntax

=TYPE (value)


Arguments

  • Value (required): The value we want to check the type of.

Return value

The TYPE function returns a numeric value.


Function notes

  1. The TYPE function returns a numeric code representing the value type in 5 categories:
    • number = 1
    • text = 2
    • logical value= 4
    • error value = 16
    • array = 64
  2. When the cell reference as the argument is blank, the TYPE function returns 1 as the result.
  3. You can't use TYPE to determine whether a cell contains a formula, because TYPE only evaluates the result.
  4. The TYPE function is useful when we want to find out what type of data is returned by another function or formula, which can return different types of values.

Example

To know the value types of the data provided in the table below, please do as follows.

1. Please copy the formula below into cell D4, then press the Enter key to get the result.

=TYPE (B4)

2.Select this result cell and drag its autofill handle down to get the rest of the results.

type function 2

3.To get the value type of cell B8, please copy the formula below into cell D8, then press the Enter key to get the result.

=TYPE ({1,2,3})

type function 3

Notes:

  1. We can also directly input a value in the formula. For example, the formula in cell D4 can be changed to:

    =TYPE (100)

  2. When the value is an array, if you input the cell reference to this array value in the formula, the TYPE function will treat it as text and return the result as 2. You need to type the array as argument directly in the formula to get the correct result 64.

Relative Functions:

  • Excel EVEN Function
    The EVEN function rounds numbers away from zero to the nearest even integer.

  • Excel EXP Function
    The EXP function returns the result of the constant e raised to the nth power.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations