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.
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.
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
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. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. Treat “excel text function” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.
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.