How to use the TYPE function
Author: Oscar Cronquist Article last updated on June 20, 2018
Use TYPE to find out what type of data is returned by a function or formula.
Formula in cell C3:
=TYPE(B3)
Excel Function Syntax
TYPE(value)
Arguments
value | Required. Any value. |
If value is | Type function returns |
---|---|
Number | 1 |
Text | 2 |
Logical value | 4 |
Error value | 16 |
Array | 64 |
Comments
You can't use the TYPE function to determine the type of value in a specific cell using a cell reference, the TYPE function will then return the type of the formula's returning value.
Even if the formula returns an array the TYPE function returns only the type of the value displayed in that cell.
Example, the picture above demonstrates an array entered in cell range B3:B4:
={1,"A"}
The TYPE function returns 1 and 2 and not 64.
Functions in 'Information' category
The TYPE function function is one of many functions in the 'Information' category.
Gets information about the formatting, location, or the contents of a cell.
Returns a number that represents one of the error values in Excel.
Returns information about the current operating environment, file path, number of active worksheets, Excel version etc.
Returns TRUE if the argument is an empty cell, returns FALSE if not.
Returns TRUE if a cell returns an error, except error value #N/A.
Returns TRUE if a cell contains an error.
Returns TRUE if a cell contains a formula, FALSE if text, number or boolean value.
Returns TRUE if value is boolean. A boolean value is either TRUE or FALSE.
Returns TRUE if value is a #N/A error.
Returns TRUE if value is not text, also returns TRUE if cell is empty.
Checks if a value is a number, returns TRUE or FALSE.
Returns TRUE if a cell contains an odd number, FALSE if even number.
Returns TRUE if value refers to a reference.
Returns TRUE if argument is text.
Returns a value converted into a number.
Returns the error value #N/A meaning "value is not available".
Returns the sheet number of the cell reference sheet.
Returns the number of sheets in a reference.
Use TYPE to find out what type of data is returned by a function or formula.
How to comment
How to add a formula to your comment
<code>Insert your formula here.</code>
Convert less than and larger than signs
Use html character entities instead of less than and larger than signs.
< becomes < and > becomes >
How to add VBA code to your comment
[vb 1="vbnet" language=","]
Put your VBA code here.
[/vb]
How to add a picture to your comment:
Upload picture to postimage.org or imgur
Paste image link to your comment.
Contact Oscar
You can contact me through this contact form