Skip to content
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.

  1. Text comes back as-is; a number or date comes back as an empty string:

    =T(A2)

    Result"Maria Lopez"

  2. 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…