Excel TEXT

TEXT turns a number or date into text displayed in the format you specify.

A dashboard title should read Revenue: 1,234.50, but joining a number to text loses its formatting. TEXT controls exactly how the value appears, which is also how you show a month name from a date.

Practice it now

How to write it

=TEXT(value, format_text)
value
The number or date.
format_text
The format pattern, in quotes.

Watch it work

D2fx 
ABCDE
1MetricValue
2Revenue1234.5
3Margin0.256
4
5
1

Commas and fixed decimals.

Examples

Show thousands and cents

=TEXT(B2,"#,##0.00")1,234.50

Commas and fixed decimals.

Show a percentage

=TEXT(B3,"0%")26%

The value is multiplied by 100 for display.

Show a month from a date

=TEXT(DATE(2026,3,15),"mmm yyyy")Mar 2026

Date codes work too.

Your turn

Show the Margin as a percentage with one decimal. Type your formula in D2.

ABCD
1MetricValue
2Revenue1234.5
3Margin0.256
4

Common mistakes

Using the result in maths.

TEXT returns text. Keep raw numbers for calculations.

Codes vary by region.

Date letters can differ on non-English systems.

Good to know

  • Use ddd for a short day name.
  • Use cell formatting when the number stands alone.
  • TEXT or cell formatting? Formatting keeps a number numeric. TEXT is for when you need it inside a sentence.