Back to functions
Text2026-03-188 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#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#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#data-analysis#automation
16 min read
Read Article
IntermediateTime and Date
2011-10-31

Pay Periods and Funky PivotTable Controls

Use a PivotTable to find how many months in a year have an extra pay period. Excel 2011 PivotTable controls are funky looking, comparatively speaking....

#excel-for-mac#pivot-tables
3 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....

#vba
3 min read
Read Article
FormulasIntermediateTime and Date
2011-02-23

A Woopra Chat About Excel

Convert minutes and seconds to a value of minutes followed by the text MIN and formatted correctly with no decimal places by using the TEXT function....

2 min read
Read Article
FeaturesFormulasIntermediate
2010-10-19

A Sparkline Example in Excel 2010

Create a dynamic range sparkline graphic to show the last seven data points. Sparklines are new in Excel 2010 and don't work with earlier versions....

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

Official documentation