Loading…
Loading…
TEXTBEFORE returns the text before a delimiter and TEXTAFTER the text after it. They replace the LEFT/FIND and MID/FIND combos with one short function. Use a negative instance number to count from the end.
Syntax
TEXTBEFORE(text, delimiter, [instance_num]) · TEXTAFTER(text, delimiter, [instance_num])
Example: =TEXTBEFORE("ana@mail.com","@") returns ana. =TEXTAFTER("a/b/c.xlsx","/",-1) returns c.xlsx.
Common mistakes
Read the lesson, then try it yourself in a live spreadsheet.