T Function in Excel: Keep Text, Blank Out Numbers

⏱ 1 min readUpdated 28 September 2026

TextLevel: IntermediateAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Related functions

T returns text unchanged and anything else as an empty string. Rarely needed alone, but tidy for mixed columns.

Syntax

=T(value)
Argument What it means
value Anything.

Examples

Example 1

=T(A2)

Shows labels and hides numbers in a mixed import column.

N · ISTEXT

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong