Syntax
=TO_TEXT(value)Arguments
| Argument | Required | Description |
|---|---|---|
value | Required | The value to convert |
How to use TO_TEXT
TO_TEXT takes 1 required argument. Type =TO_TEXT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=TO_TEXT(24)Result =TO_TEXT(TRUE)Result Related text functions
- TO_DATEReturns a number as a date value (the number itself; text and other values are returned unchanged).
- TO_DOLLARSReturns a number as a currency value (the number itself; other values are returned unchanged).
- TO_PERCENTReturns a number as a percentage value (the number itself; other values are returned unchanged).
- TO_PURE_NUMBERReturns a value as a plain number without date, percent or currency meaning; numeric text is converted.
- TRIMRemoves spaces from the start and end of text and turns runs of spaces inside it into single spaces.
- UNICHARReturns the Unicode character for a code number.
- UNICODEReturns the Unicode code point of the first character of a text.
- UPPERConverts text to uppercase.
- VALUEConverts text that looks like a number, date, time, percentage or currency into a number.