Skip to Content

TEXTAFTER

Returns text that occurs after a given character or string

Syntax

TEXTAFTER(text, delimiter, [instance_num], [match_mode], [match_end], [if_not_found])

Parameters

  • text: Required. The text you are searching within
  • delimiter: Required. The text that marks the point after which you want to extract
  • instance_num: Optional. The instance of the delimiter after which you want to extract text (default 1)
  • match_mode: Optional. 0=case-sensitive (default), 1=case-insensitive
  • match_end: Optional. 0=don't match end (default), 1=match against the end of text
  • if_not_found: Optional. Value returned if no match is found

Example

=TEXTAFTER("Red-Blue-Green", "-")
Returns: StringSince: Microsoft 365