Returns the given text, or an empty text string if the target is not text.
T(value)
if value is text, it is returned.if value is a number or a logical value, an empty text string "" is returned.
T("red car")
returns red car.
T(123.4)
returns an empty text string.
ISTEXT(T(123.4))
returns TRUE.
T(NA())
returns the #N/A error. Errors are propagated.
Scenario: You have a list of sales data. Some cells in the "Notes" column contain actual text notes, while others contain numerical codes or are empty. You want to create a new column that only shows the actual text notes and leaves everything else blank.
Table:
Order ID | Product | Notes | Text Notes Only | ||
|---|---|---|---|---|---|
A | B | C | D | ||
1 | 1001 | Laptop | Needs expedited shipping. | Needs expedited shipping. | |
2 | 1002 | Monitor | 501 | ||
3 | 1003 | Keyboard | Special instructions for delivery. | Special instructions for delivery. | |
4 | 1004 | Mouse | 6 | ||
5 | 1005 | Webcam |
Explanation:
In this example, the formula used in the "Text Notes Only" column (cell D2) is:
T(C1)
This simple function helps you to quickly and automatically filter out non-text values, which is particularly useful when you have a mixed data type in a single column and you only want to work with the text data.
PRODUCT & FEATURES
RESOURCES
Terms | Privacy | Spam Policy
© 2026 Zapof