Syntax
| Parameter | Description |
|---|---|
| value | Parameter of the TEXT function. |
| format_text | Parameter of the TEXT function. |
Examples
Format number as currency in text
="Total: " & TEXT(B2, "$#,##0.00")
Format date as readable text
=TEXT(A2, "MMMM D, YYYY")
Add leading zeros
=TEXT(A2, "00000")
Common Errors
The format string is invalid. Check the format code syntax — common codes are "0" for digits, "#" for optional digits, and "YYYY" for year.
The format string is missing quotes. It must be a text string in double quotes: TEXT(A1, "0.00") not TEXT(A1, 0.00).
Tips
"$#,##0" for currency. "0.00%" for percentages. "YYYY-MM-DD" for ISO dates. "#,##0" for thousands separator.
TEXT returns a text string, not a number. You cannot do math on the result. Use it only for display purposes.
"DDDD" gives full day name (Monday), "DDD" gives short (Mon). "MMMM" gives full month, "MMM" gives short.
Try TEXT in Viztab
Import your data and use TEXT with 370+ other formulas. No signup required.
Open Viztab