Text All versions ◉ 32 views

=T()

Returns the text referred to by value.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=T(value)
Hover argument names in the table for details.
Output typeText
Popularity10 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =T() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
Download T.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
value Any type Required The value you want to test.

▣ Examples

▦ Data
CellValue
A2 Rainfall
A3 19
A4 TRUE
A5 Rainfall
A6 19
A7 TRUE
Because the first value is text, the text is returned (Rainfall) =T(A2)
Result: Rainfall
Because the second value is a number, empty text is returned () =T(A3)
Because the third value is a logical value, empty text is returned () =T(A4)

§ Remarks

  • If value is or refers to text, T returns value. If value does not refer to text, T returns "" (empty text).
  • You do not generally need to use the T function in a formula because Microsoft Excel automatically converts values as necessary. This function is provided for compatibility with other spreadsheet programs.

✦ Tips

  • If value is or refers to text, T returns value. If value does not refer to text, T returns "" (empty text).
  • You do not generally need to use the T function in a formula because Microsoft Excel automatically converts values as necessary. This function is provided for compatibility with other spreadsheet programs.

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.