VALUETOTEXT function
Converts any value to text. In strict mode text is wrapped in quotes, so the output can be pasted into a formula.
Available in Microsoft 365, Excel 2021 and later, Excel for the web, Excel for Mac 2021+
Excel 2021 and laterNot in Google Sheets
Syntax
VALUETOTEXT(value, [format])| Argument | What it means | |
|---|---|---|
value | Required | The value to convert: text, number, logical value or a cell. |
format | Optional | 0 (default) concise: the value as it would read. 1 strict: text values are wrapped in double quotes. |
Returns: Text.
How VALUETOTEXT works
VALUETOTEXT turns a single value into text. In the default concise mode text stays as it is and numbers and logical values are written out as their stored value (1250.5, TRUE). It is the single-cell partner of ARRAYTOTEXT.
The strict mode (format 1) is what makes it different from simply joining with &"": text values are wrapped in double quotes while numbers are not. That makes it easy to build formula text, JSON-like strings or log messages where you must tell "42" (text) and 42 (number) apart - a common source of bugs when data arrives from imports.
Number formatting is ignored; use TEXT when you need a particular look.
Examples
1Concise mode keeps text as it is
| A | B | C | |
|---|---|---|---|
| 1 | Customer | Balance | |
| 2 | Northwind | 1250.5 | Northwind |
Result: Northwind
Text in concise mode is returned unchanged.
2Strict mode quotes text
| A | B | C | |
|---|---|---|---|
| 1 | Customer | Balance | |
| 2 | Northwind | 1250.5 | "Northwind" |
Result: "Northwind"
With format 1 the text is wrapped in double quotes, ready to be pasted into a formula.
3Numbers are never quoted
| A | B | C | |
|---|---|---|---|
| 1 | Customer | Balance | |
| 2 | Northwind | 1250.5 | 1250.5 |
Result: 1250.5
Even in strict mode the number stays unquoted and unformatted, which shows it really is a number.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#VALUE! | format is not 0 or 1. | Use 0, 1 or leave it out. |
Tips
- Spot numbers stored as text:
=VALUETOTEXT(A2,1)shows quotes around"42"if A2 holds text and no quotes if it holds a number. - For a whole range use ARRAYTOTEXT.
Google Sheets
Use TO_TEXT(value), or """" & value & """" to add quotes like the strict format.
VALUETOTEXT in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Danish | VÆRDITILTEKST |
| Finnish | ARVO.TEKSTIKSI |
| French | VALEUR.EN.TEXTE |
| Hungarian | ÉRTÉK.SZÖVEGGÉ |
| Norwegian (Bokmål) | VERDITILTEKST |
| Polish | WARTOŚĆ.NA.TEKST |
| Russian | ЗНАЧЕНИЕВТЕКСТ |
| Spanish | VALORATEXTO |
| Swedish | VÄRDETILLTEXT |
| Turkish | DEĞERMETİN |