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 nowHow 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
Examples
Show thousands and cents
=TEXT(B2,"#,##0.00")1,234.50Commas 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 2026Date codes work too.
Your turn
Show the Margin as a percentage with one decimal. Type your formula in D2.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Metric | Value | ||
| 2 | Revenue | 1234.5 | ||
| 3 | Margin | 0.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.
Excelio