=TO_TEXT(value)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
| Parameter | Required | Description |
|---|---|---|
| value | Yes | The value or cell reference to convert to text. Numbers become text strings; text is returned unchanged. |
TO_TEXT converts a number into text. The result looks the same, but Sheets now treats it as a string: it left-aligns by default, it is ignored by SUM and other numeric aggregates, and it can be compared with other text values exactly.
When you point TO_TEXT at a cell, it uses the cell's displayed formatting. If A2 holds 0.25 formatted as a percentage, =TO_TEXT(A2) returns the text "25%"; if A2 holds a date, you get the date as it appears in the cell rather than its serial number.
=TO_TEXT(A2)&"-"&B2.=TO_TEXT(42)Returns the text "42". =ISTEXT(TO_TEXT(42)) returns TRUE.
=VLOOKUP(TO_TEXT(A2), Products!A:C, 3, FALSE)Looks up a numeric ID in a table where IDs are stored as text.
="Completion: "&TO_TEXT(B2)If B2 is formatted as 87.5%, the label reads "Completion: 87.5%". Without TO_TEXT, concatenation uses the raw value 0.875.
=ARRAYFORMULA(TO_TEXT(A2:A500))| TO_TEXT | TEXT | |
|---|---|---|
| Arguments | Just the value | Value and a format pattern |
| Formatting used | The source cell's existing display format | The pattern you supply, e.g. "0.00", "yyyy-mm-dd" |
| Best for | Quick type conversion, keeping what you see | Precise control over output |
If you need a specific look regardless of the source cell's formatting, use =TEXT(A2, "$#,##0.00"). If you just need "the same thing, but as text", TO_TEXT is simpler.
To turn text back into a number, use VALUE (parses text such as "1,200" or "25%"), or TO_PURE_NUMBER to strip formatting from a numeric value. Multiplying by 1 or adding 0 also coerces numeric-looking text in most formulas.
TEXT(A2, "00000") for fixed-width codes.TEXT, VALUE, TO_PURE_NUMBER, TO_DOLLARS, TO_PERCENT, TO_DATE, and ISTEXT.
An e-commerce analyst's order export stores product IDs as numbers, but the catalogue sheet stores them as text, so VLOOKUP returns #N/A. Rewriting the lookup as =VLOOKUP(TO_TEXT(A2), Catalogue!A:D, 2, FALSE) makes the types match and every product name appears.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.