
📎 This article includes 1 downloadable practice file ↓
TEXT converts a number or date into text using a format code — needed when you join values into labels.
Syntax
=TEXT(value, format_text)
| Argument | What it means |
|---|---|
value |
Number or date. |
format_text |
A format code in quotes, e.g. “dd-mmm-yyyy”. |
Examples
Example 1
=TEXT(A2, "dddd")
Day name: Monday.
Example 2
="Sales for "&TEXT(A2, "mmmm yyyy")
Sales for March 2019.
Example 3
=TEXT(B2, "#,##0")
Thousands separators.
Common errors and fixes
| You see | Why, and the fix |
|---|---|
Result will not add up |
TEXT returns text, not a number. Keep the original value for calculations. |
Related functions
CONCAT · DATE · VALUE
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
📎 Practice files for this article
- 📗Text-cleaning scenarios workbookExtract and clean text (GSTIN, PAN, emails, names) with PASS/FAIL checks, plus the 3 mistakes that break text formulas.⬇ XLSX · 8 KB
Free to use for learning. Files with macros (.bas) are plain text — import them with Alt+F11 → File → Import File, and always test on a copy.
✨ Ask AI about this article
Stuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong