TEXT Function in Microsoft Excel: Syntax, Examples & Compatibility
Learn how to produce a formatted text label from a number without changing the original numeric cell in Microsoft Excel. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: produce a formatted text label from a number without changing the original numeric cell in Microsoft Excel. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.
Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native Microsoft Excel test results. A guide being published here does not certify every software release or file-import scenario.
Availability and version history
- Introduced: Introduction version not established by the official history reviewed.
- Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
- Checked: October 14, 2026; official TEXT reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and arguments
=TEXT(value, format_text)
value is the number or date to display; format_text is a quoted format pattern such as "0.00" or "0%".
Best use case: Produce a formatted text label from a number without changing the original numeric cell.
Set up the example sheet
Imagine an inventory report with numeric prices that must appear in a printable text label. Enter the formulas in blank cells; there is no source table to build.
Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These formulas use comma argument separators in a typical English-language locale; commas or semicolons inside quoted text are data, not argument separators. Adapt the separator if your regional settings require it.
Worked example 1: TEXT with known input
=TEXT(42.5,"0.00")
Expected output: 42.50 (text).
The pattern forces two decimal places; the output is a string, not a new numeric value.
Worked example 2: a second TEXT case
=TEXT(0.256,"0%")
Expected output: 26% (text).
The percent pattern multiplies the displayed value by 100 and rounds to a whole percent.
Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.
Advanced example: format identifiers, percentages and dates explicitly
These formulas use English-style format codes and a decimal-point locale:
=TEXT(42,"0000")
=TEXT(0.256,"0.0%")
=TEXT(DATE(2026,10,14),"yyyy-mm-dd")
The expected text values are 0042, 25.6%, and 2026-10-14. The percentage example displays one decimal place after multiplying the visible scale by 100. The date example constructs a date first, avoiding an ambiguous date string.
For a label with a fixed numeric presentation, ="Rate: "&TEXT(0.256,"0.0%") returns Rate: 25.6%. The numeric source remains 0.256; the new label is not a replacement for it in calculations.
Formatting as a cell display and converting to text are different operations. If another formula must sum or compare the underlying quantity numerically, keep and reference the numeric source. Locale-specific date words and format tokens should be checked in the recipient’s workbook. Microsoft’s reference explains obtaining the appropriate code from the Format Cells dialog rather than assuming every locale uses identical tokens.
Practical advice and troubleshooting
When this formula helps: Keep the original numeric value if you plan to sum or average it later. Cell formatting alone is preferable when you only need to change appearance.
Important edge case: Date and currency patterns can be locale-sensitive. The result is text even when the characters look like a number.
If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. An error that looks like a missing function may reflect a software version rather than incorrect data.
Compatibility and version considerations
Both programs have TEXT, but exact locale-specific format tokens are not a promise of identical results across all regional settings.
Check your installed release for availability and dynamic-array support.
Function availability and parameter behavior must be judged for the specific application and release; a function documented in one spreadsheet does not automatically work in another.
Related guides and official documentation
-
Microsoft Excel documentation for TEXT — function syntax and current vendor information.
Editorial verification: Direct function documentation reviewed October 14, 2026. The two example outputs are independently reasoned; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.