Text functions

The 48 text functions in Sheets, with the usual names, arguments and results.

FunctionWhat it doesSyntax
ARRAYTOTEXTValues of an array as one textARRAYTOTEXT(array, [format])
ASCFull-width characters to half-widthASC(text)
BAHTTEXTNumber as Thai baht textBAHTTEXT(number)
CHARCharacter for a code from 1 to 255CHAR(number)
CLEANRemove nonprinting charactersCLEAN(text)
CODECode of the first characterCODE(text)
CONCATexampleJoin text stringsCONCAT(text1, text2, ...)
CONCATENATEJoin text stringsCONCATENATE(text1, text2, ...)
DBCSHalf-width characters to full-widthDBCS(text)
DOLLARNumber as currency textDOLLAR(number, [decimals])
ENCODEURLURL-encoded textENCODEURL(text)
EXACTWhether two texts are identicalEXACT(text1, text2)
FINDPosition of text (case-sensitive)FIND(find_text, within_text, [start])
FINDBPosition of text (case-sensitive)FINDB(find_text, within_text, [start_num])
FIXEDNumber as text with fixed decimalsFIXED(number, [decimals], [no_commas])
JISHalf-width characters to full-widthJIS(text)
LEFTexampleFirst characters of textLEFT(text, [count])
LEFTBFirst characters of textLEFTB(text, [num_bytes])
LENexampleString lengthLEN(text)
LENBLength of textLENB(text)
LOWERexampleLowercaseLOWER(text)
MIDCharacters from the middle of textMID(text, start, count)
MIDBCharacters from the middle of textMIDB(text, start_num, num_bytes)
NUMBERVALUEText to number with given separatorsNUMBERVALUE(text, [decimal_separator], [group_separator])
PHONETICPhonetic (furigana) text of a cellPHONETIC(reference)
PROPERexampleCapitalize each wordPROPER(text)
REGEXEXTRACTText that matches a regular expressionREGEXEXTRACT(text, pattern, [return_mode], [case_sensitivity])
REGEXREPLACEReplace regular expression matchesREGEXREPLACE(text, pattern, replacement, [occurrence], [case_sensitivity])
REGEXTESTWhether text matches a regular expressionREGEXTEST(text, pattern, [case_sensitivity])
REPLACEReplace characters at a positionREPLACE(old_text, start_num, num_chars, new_text)
REPLACEBReplace characters at a positionREPLACEB(old_text, start_num, num_bytes, new_text)
REPTRepeat textREPT(text, times)
RIGHTLast characters of textRIGHT(text, [count])
RIGHTBLast characters of textRIGHTB(text, [num_bytes])
SEARCHPosition of text (any case, wildcards)SEARCH(find_text, within_text, [start])
SEARCHBPosition of text, wildcards allowedSEARCHB(find_text, within_text, [start_num])
SUBSTITUTEexampleReplace textSUBSTITUTE(text, old_text, new_text, [instance])
TEXTexampleFormat a number or date as textTEXT(value, format)
TEXTAFTERText after a delimiterTEXTAFTER(text, delimiter, [instance_num], [match_mode], [match_end], [if_not_found])
TEXTBEFOREText before a delimiterTEXTBEFORE(text, delimiter, [instance_num], [match_mode], [match_end], [if_not_found])
TEXTJOINexampleJoin texts with a delimiterTEXTJOIN(delimiter, ignore_empty, text1, [text2], …)
TEXTSPLITSplit text into columns and rowsTEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with])
TRIMexampleRemove extra spacesTRIM(text)
UNICHARCharacter for a Unicode numberUNICHAR(number)
UNICODEUnicode number of the first characterUNICODE(text)
UPPERUppercaseUPPER(text)
VALUEConvert text to a numberVALUE(text)
VALUETOTEXTAny value as textVALUETOTEXT(value, [format])