Back to functions
Text2026-03-146 related articles

TEXT Function in Excel

Convert a value to text using a custom number, date, or time format.

Syntax

TEXT(value, format_text)

Arguments

value

Required

The number, date, or time value to format.

format_text

Required

The formatting code Excel should apply to the output string.

What it returns

Returns a text string formatted according to the format code you provide.

What TEXT does

TEXT converts a numeric value into a text string using the formatting pattern you choose. It is useful when you need a value to look a certain way inside labels, messages, exports, or concatenated formulas.

Practical examples

Format a date for display

=TEXT(A2,"mmm d, yyyy")

This turns an underlying date serial number into a readable text label such as Mar 14, 2026.

Combine text and numbers

="Revenue: "&TEXT(B2,"$#,##0")

This is a common pattern for dashboard text and summary strings.

Common mistakes and notes

TEXT changes the data type

After TEXT runs, the result is text, not a number. That means later math may fail unless you convert the value back.

Format codes are the whole point

If the output looks wrong, the format code is usually the first thing to review.

Related functions

Related articles

Deep dives, troubleshooting guides, and practical examples that use TEXT.

AI in ExcelFormulas
2026-02-26

How to Use =COPILOT in Excel

Learn how to use the =COPILOT function in Excel, what kinds of prompts work best in cells, and where this feature still needs careful review....

#ai#copilot#formulas#microsoft-365
3 min read
Read Article
AI in Excel
2025-11-20

How to Use Copilot in Excel for Formulas, Analysis, and Cleanup

Learn how to use Copilot in Excel for real workbook tasks such as formula writing, data cleanup, and quick analysis without trusting the first answer blindly....

#ai#copilot#formulas#cleanup#data-analysis
4 min read
Read Article
AI in ExcelAdvanced
2025-11-14

AI in Excel: Practical Guide to Copilot, ChatGPT, Claude, and Gemini

Learn how to use AI in Excel with Copilot, ChatGPT, Claude, and Gemini. Compare strengths, limitations, use cases, and how to verify AI-generated formulas, analysis, and automation....

#ai#copilot#chatgpt#claude#gemini#data-analysis#automation
16 min read
Read Article
AdvancedFormattingFormulasTime and Date
2011-07-08

International Short Date Formatting for the TEXT Function

A quick method to automatically give the TEXT function a short date format that matches the computers region settings by using some VBA code in Excel....

#tips#vba
3 min read
Read Article
FormulasIntermediate
2010-09-04

The TEXT Function in Excel

The TEXT Function in Excel converts a value to text and lets you specify the display formatting by using special format strings....

2 min read
Read Article
FormulasTime and Date
2010-07-28

Extract a Date from Text in Excel

Extract a Date from Text values by using a formula in Excel....

2 min read
Read Article

Official documentation