Help Centre › Functions & Formulas
For a full list of available calculation functions, please read What calculation functions are supported.
Description
The TEXTAFTER function returns the text that occurs after a specified delimiter or occurrence in a text string.
Syntax
TEXTAFTER(text, delimiter, [instance_num], [match_mode], [match_end])
The TEXTAFTER function syntax has the following arguments:
- text: Required. The text string to search within.
- delimiter: Required. The character or characters that mark the point after which to return text.
- instance_num: Optional. Specifies which occurrence of the delimiter to use. If omitted, the first occurrence is used.
- match_mode: Optional. Specifies whether to match case-sensitive or case-insensitive. Default is case-insensitive.
- match_end: Optional. If TRUE, returns text up to the end of the string; if FALSE, returns text up to the next delimiter.
Example
| Formula | Description | Result |
| =TEXTAFTER("apple, banana, cherry", ", ") | Returns text after the first comma and space. | banana, cherry |
Errors
For a full list of formula errors, please read Formula errors.