Function T in Google Sheets – Return Text, Ignore Numbers

The T function in Google Sheets returns text, an empty string, or an error, depending on the value in a cell.

If the cell contains:

  • Text → Returns the text itself
  • A numeric value (such as a number, date, or time) → Returns an empty string ("")
  • An error → Returns the error

You can use the T function with FILTER to extract only text values from a column or row.

Syntax

T(value)
  • value – The cell reference containing the value.
  • If you specify a range, use it with ARRAYFORMULA.
  • If you use the T function within FILTER, SORT, SORTN, INDEX, or SUMPRODUCT, you can omit ARRAYFORMULA.

Function T – Examples

=T(A1) // Returns "Apple" if A1 contains "Apple"
  • If A1 contains a numeric value, it returns an empty string ("").
  • If A1 contains an error, it returns the error itself.

Extract Text Using Function T and How It Differs from ISTEXT + IF

Assume you have mixed data in column A (A1:A10) and want to extract only text values.

In cell B1, you can use one of the following formulas and drag it down:

=T(A1)

or

=IF(ISTEXT(A1), A1,)

Alternatively, apply them as array formulas in B1 alone:

=ARRAYFORMULA(T(A1:A10))
=ARRAYFORMULA(IF(ISTEXT(A1:A10), A1:A10,))

Key Differences

FunctionBehavior
TExtracts text and errors, if any. Empty results contain empty strings (“”), so ISBLANK will return FALSE.
IF + ISTEXTExtracts text only. Empty results are true blank cells, so ISBLANK will return TRUE.

Filter Text Only

To filter only text values from the range A1:A10, you can use the T function with FILTER:

=FILTER(A1:A10, T(A1:A10)<>"")

Alternatively, you can use the ISTEXT function with FILTER:

=FILTER(A1:A10, ISTEXT(A1:A10))

Both formulas return only the text values while excluding numbers, dates, and empty cells.

Resources

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Top N Products and Top N Sellers in Google Sheets (Top N of Top N)

If you’ve ever wanted to compare which sellers contribute the most to your top-selling...

Use XLOOKUP in a Structured Table in Google Sheets (Single and Multiple Conditions)

This tutorial is for users who want to apply XLOOKUP inside a structured table...

Reset SCAN by Another Column in Google Sheets and Excel

Resetting SCAN function results based on values in another column is a topic of...

How to Get the Fastest Time for Each Person in Google Sheets

Whether you’re tracking race results, event times, or any other timed activities, finding the...

More like this

Top N Products and Top N Sellers in Google Sheets (Top N of Top N)

If you’ve ever wanted to compare which sellers contribute the most to your top-selling...

Use XLOOKUP in a Structured Table in Google Sheets (Single and Multiple Conditions)

This tutorial is for users who want to apply XLOOKUP inside a structured table...

How to Get the Fastest Time for Each Person in Google Sheets

Whether you’re tracking race results, event times, or any other timed activities, finding the...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.