The T function in Google Sheets returns string arguments as text, and returns an empty string for anything that isn't already text. It's a small but useful tool for ensuring a value is treated as text before it flows into another formula. Dive into our comprehensive guide to master its application.
Parameters
value: The value to check and return as text if it is a string.
Step-by-Step Tutorial
-
Using
Twith a string value:- Example:
=T("Hello World") - Result:
"Hello World"
- Example:
-
Using
Twith a non-text value:- Example:
=T(123) - Result:
""
- Example:
Use Cases and Scenarios
- Data Validation: Confirm that a cell's content is genuinely text before using it in a text-only formula.
- Mixed-Type Ranges: Filter out numeric values from a mixed range by returning only the text entries.
Related Functions
TEXT: Converts a number into text according to a specified format.VALUE: Converts a string in a number format into a number.N: Returns the argument provided as a number.