In Excel: use =TEXT(value, format_text), for example =TEXT(A2,"mmm d, yyyy") to display a real date as Jun 1, 2026 inside a text result.
On this page7
Reference the value you want to display.
Add a format code in quotes, such as "0.0%", "$#,##0" or "yyyy-mm-dd".
Use TEXT inside concatenation only when the final result should be text.
Keep the original numeric value in a separate cell for calculations.
What this does
TEXT converts a number, date or time into formatted text. It is most useful when you need a value inside a sentence, label, filename or combined string while controlling its display. Because the result is text, it is not the right tool when you still need the output to behave like a number for math. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. Treat “excel text function” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected formula shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
A2 contains the date June 1, 2026 and B2 contains 1250. =TEXT(A2,"mmm d, yyyy") returns Jun 1, 2026. ="Invoice sent on "&TEXT(A2,"mmmm d, yyyy")&" for "&TEXT(B2,"$#,##0") returns a readable sentence while keeping the original date and amount numeric in A2 and B2. TEXT is the clean way to build readable spreadsheet labels without losing control over dates, percentages, currency and leading zeros in the displayed text. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.
In Google Sheets
Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. For “excel text function”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.
Common mistakes
- Using TEXT on values that still need to be summed, sorted numerically or charted.
- Forgetting quotes around the format code.
- Using date format codes on text that Excel has not converted to a real date.
- Mixing locale-specific separators without testing the workbook in the target region.
Frequently asked questions
What does TEXT do in Excel?
It returns a formatted text version of a number, date or time.
Why cannot I sum TEXT results?
TEXT returns text, not a number. Sum the original values or convert the text back to numbers.
How do I show a percentage with TEXT?
Use a format like =TEXT(A2,"0.0%").
Other ways people ask this
This is also commonly searched as “excel text functions”, “excel function text”, “excel text function format codes” and “text to function excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Why do people search for this in so many different ways?
Because the same task has many names. “excel text functions”, “excel function text”, “excel text function format codes” all point at the one operation explained on this page, which is why they all lead here.