Excel - T Function



T Function

The Excel T function is used to verify whether the data provided in the VALUE argument is qualitative. If it is qualitative, then the T function will retrieve the exact value. Otherwise, the empty text will be populated on the designated cell in Excel. It executes undoubtedly with a wide variety of data, such as DATE, whole number, and Time. Unlike other Excel functions, the T function does not produce an error if nontext values are found in the field.

Compatibility

This flexible T function is compatible with the following versions of MS Excel −

  • Excel for Microsoft 365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2024
  • Excel 2024 for Mac
  • Excel 2021
  • Excel 2021 for Mac
  • Excel 2019
  • Excel 2016

Syntax

The syntax of the T function in Excel is as follows −

=T(value)

Arguments

You can use the following arguments with the T function −

Argument Description Required/Optional
Value A text value is required to cross-check whether it is text or not. Required

Points to Remember

  • If the "Value" contains the empty text, then the T function will display no output.
  • The T function will retrieve the accurate result only for qualitative value.
  • If the logical value is specified in the "Value" argument, then the T function will retrieve an empty string.
  • If the Date in double quotation is provided in the first argument, "Value", then the T function will return the Date as a text form, retaining its formatting.
  • If the cell reference specified in the VALUE argument points to the error, the T function will return the same error value in this case.
  • Ensure that the input text is enclosed in the double quote; otherwise, the T function will retrieve the empty string.

Examples of T Function

Practice the following examples to get the benefits of the T function in Excel.

Example 1: How to use the T Function in Excel?

Solution

Step 1 − First, consider the sample dataset consisting of the Value and Result where the input text is specified in the cell range B2:B5. Select the range C2:C5 and type the expression =T(B2) in the formula bar.

How to use the T Function in Excel1

Step 2 − Moreover, press the "ctrl+enter" to get the result in the selected range C2:C5.

How to use the T Function in Excel2

Example 2

If the Date in double quotation is provided in the first argument, "Value", then the T function will return the Date as a text form, retaining its formatting.

Solution

You may enter the formula =T(A2) in the B2 cell and hit the Enter tab.

T Function will Return Date as Text Form

Therefore, the T function will give you the result of the same date supplied.

Example 3

If the cell reference specified in the VALUE argument points to the error, the T function will return the same error value in this case.

Solution

The mixed input values are showcased in the cell range A2:A4. Select this range and write the formula =T(B2) in the formula bar.

T Function will Return Same Error Value1

Moreover, press the "ctrl+enter" to obtain the result.

T Function will Return Same Error Value2

Therefore, the error value #DIV/0! Encounters in the B2 cell which is invalid; accurate results of the T function depend on the provided input.

Download Practice Sheet

You can download and use the sample data sheet to practice the T function.

Advertisements