Google Sheets
T function in Google Sheets
Returns string arguments as text.
=T(value)T syntax and parameters
One argument, one required.
- valueanyRequired
The argument to be converted to text. If value is text, T returns value. If value is a reference to a cell containing text, T returns the contents of value. If value is an error or a cell containing an error, T returns the error. Otherwise, T returns an empty string.
T examples
Formulas you'll actually reuse.
Text comes back as-is; a number or date comes back as an empty string:
=T(A2)Result
"Maria Lopez"Tell text from numbers in a mixed column:
=IF(T(A2) = "", "number", "text")Result
"number"
T in Excel
Same name — your formula ports as-is.
Try T in the playground
Edit the example — nothing to install.
Preloaded with the T formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Google Sheets gets this done.
- ARABICComputes the value of a Roman numeral.TextExcel
- CHARConvert a number into a character according to the current Unicode table.TextExcel
- CLEANReturns the text with the non-printable ASCII characters removed.TextExcel
- CODEReturns the numeric Unicode map value of the first character in the string provided.TextExcel
- CONCATENATEAppends strings to one another.TextExcel
- DOLLARFormats a number into the locale-specific currency format.TextExcel