Returns the text referred to by value.
Value is the value you want to test.
- If value is or refers to text, T returns value. If value does not refer to text, T returns "" (empty text).
- You do not generally need to use the T function in a formula because Microsoft Excel automatically converts values as necessary. This function is provided for compatibility with other spreadsheet programs.
The example may be easier to understand if you copy it to a blank worksheet.
How to copy an example
- Create a blank workbook or worksheet.
- Select the example in the Help topic.
Note Do not select the row or column headers.
Selecting an example from Help
- Press CTRL+C.
- In the worksheet, select cell A1, and press CTRL+V.
- To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.
||Because the first value is text, the text is returned (Rainfall)
||Because the second value is a number, empty text is returned ()
||Because the third value is a logical value, empty text is returned ()