ID EN
#Information

T

Excel Functions

Filter text values only

Syntax

EXCEL
=T(value)

Arguments

Parameter Description
value The value to return as text.

Return Value

Value as text when text

Details

The Excel T function converts numbers, dates, and the logical values TRUE and FALSE into empty strings. Text values and errors are not converted and pass through unaffected. You can use the T function to remove values that are not text. The T function takes one argument, value, which can be a cell reference, a formula result, or a hardcoded value. The T function returns text when given a text value and an empty string ("") for numbers, dates, and the logical values TRUE and FALSE. For example: In most cases, the T function is unnecessary, because Excel automatically converts values when needed. The T function is provided for compatibility with other spreadsheet programs. Errors are not affected by the T function:

Examples

Examples

The T function returns text when given a text value and an empty string ("") for numbers, dates, and the logical values TRUE and FALSE. For example:

EXCEL
=T("apple") // returns "apple"
=T("NASA") // returns "NASA"
=T(100) // returns ""
=T(FALSE) // returns ""
Examples

Errors are not affected by the T function:

EXCEL
=T(3/0) // returns #DIV/0!
=T("#N/A") // returns #N/A

See Also

N