T Function in Excel: Keep Text, Blank Out Numbers

T Function in Excel: Keep Text, Blank Out Numbers featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 19 October 2026

TextLevel: IntermediateAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. T in practice
  5. Where you will use it
  6. Worked example
  7. Mistakes people make
  8. Related functions
  9. Continue learning

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

Advertisement

Syntax

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

Examples

Example 1

=T(A2)

Shows labels and hides numbers in a mixed import column.

T in practice

Where you will use it

  • Return text only, ignore numbers
  • Clean mixed data
  • Old Lotus-style formulas

Worked example

| shows where the result ends.

ValueFormulaResult
Pune=T(A2)&"|"Pune|
100=T(A3)&"|"|
TRUE=T(A4)&"|"|

Results calculated in Excel. | marks where the result ends: numbers and TRUE give empty text.

Mistakes people make

MistakeWhat to do instead
Expecting numbers to convertNumbers become empty text
Rarely neededUse IF(ISTEXT(...)) for clarity

N Β· ISTEXT

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Text & cleaning24 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 35 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

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

Free Β· AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *