Function · Text
Excel VALUETOTEXT function
The Excel VALUETOTEXT function returns text. Format 0 leaves Electric as Electric. Format 1 returns "Electric". A $143.60 bill comes back as 143.6.
Syntax =VALUETOTEXT(value, [format])
=VALUETOTEXT(A1:B2,0)Arguments
| Name | Required | What to pass |
|---|---|---|
| value | Required | The value to return as text. A number, text, a Boolean, an error, or a range. |
| format | Optional | 0, or omitted, is concise General format. 1 is strict. Strict puts quotation marks around text and leaves numbers, Booleans, and errors unquoted. Any other number is |
Examples
A $143.60 bill and an 8.25% rate, as General text
=VALUETOTEXT(B1,0)Result 143.6
The label Electric in strict format
=VALUETOTEXT("Electric",1)Result "Electric"
A 2 by 2 block, one text value per cell
=VALUETOTEXT(A1:B2,0)Result Rent and 1200, then Electric and 143.6
July 4, 2026 as a date serial
=VALUETOTEXT(DATE(2026,7,4))Result 46207
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Rent | 1200 | Rent | 1200 | |
| 2 | Electric | 143.6 | Electric | 143.6 |
VALUETOTEXT returns text. Format 0, the default, follows General format. A cell that shows $143.60 holds the number 143.6, and =VALUETOTEXT(B1,0) returns the text 143.6. The same call on 0.0825, which a percent format shows as 8.25%, returns the text 0.0825. Format 1 returns those same two texts. Strict format puts quotation marks around text and leaves numbers, Booleans, and errors unquoted.
=VALUETOTEXT("Electric",0) is Electric. =VALUETOTEXT("Electric",1) is “Electric”, and the quotation marks are part of the text. Microsoft’s published table shows the same split for Hello and “Hello”, and the same unquoted number 1234.01234 in both formats.
With format 0, a range comes back as one text value per cell, in the same shape. Rent and 1200 on the first row, Electric and 143.6 on the second, become a 2 by 2 spill of text. LibreOffice does not have VALUETOTEXT. That shape was checked by applying the General-format rule to each cell in Python. SUM of the spill range is 0, because SUM ignores text in a range. SUM of the original numbers 1200 and 143.6 is 1343.6. ISTEXT of each spilled cell is TRUE.
July 4, 2026 has the Excel serial 46207. =VALUETOTEXT(DATE(2026,7,4)) returns the text 46207. The serial was counted in Python from Excel’s date system. January 1, 2024 is serial 45292 in that same count. TEXT with "mmmm d, yyyy" returns the words July 4, 2026.
ARRAYTOTEXT joins a range into one cell. Format 0 is a comma-separated list. Format 1 is one string with commas between columns, semicolons between rows, and quotes around text, which is the form you can paste into the formula bar. T returns text unchanged and returns an empty string for a number. N converts the other way. N of TRUE is 1, and N of ordinary text is 0. VALUE turns numeric text such as $1,234.50 back into the number 1234.5. The number to words LAMBDA spells 1234.56 as one thousand two hundred thirty-four dollars and fifty-six cents. VALUETOTEXT of that amount is the digits 1234.56.
A format other than 0 or 1 is #VALUE!. =VALUETOTEXT("Electric",2) is that error. Pass the error #VALUE! in, and both formats return #VALUE!, which is the result Microsoft publishes for that row. Excel 2019 returns #NAME?. Google Sheets returns #NAME? as well.