Text
TEXTBEFORE function
Text before a delimiter. TEXTBEFORE works in Sheets with the usual arguments and results, on cells and on live data from the tools you connect.
Syntax
=TEXTBEFORE(text, delimiter, [instance_num], [match_mode], [match_end], [if_not_found]) | Argument | Use |
|---|---|
text | required |
delimiter | required |
instance_num | optional |
match_mode | optional |
match_end | optional |
if_not_found | optional |
On live data
In Sheets, TEXTBEFORE sits next to live data from a connected tool: =data.orders.sum(total) totals a table, =list.orders(customer) spills a column's distinct values, and a linked table column such as table.orders[Total] is a range any function accepts.
More text functions
CONCATJoin text stringsLEFTFirst characters of textLENString lengthLOWERLowercasePROPERCapitalize each wordSUBSTITUTEReplace textTEXTFormat a number or date as textTEXTJOINJoin texts with a delimiterTRIMRemove extra spacesARRAYTOTEXTValues of an array as one textASCFull-width characters to half-widthBAHTTEXTNumber as Thai baht text
Spreadsheet formulas on live business data
Sheets evaluates 491 spreadsheet functions, on cells and on data read live from your tools.