Formualizer Docs

TEXTAFTER

Returns text that appears after a delimiter.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=TEXTAFTER(text, delimiter, [instance_num])

Arguments

ArgumentTypeRequiredDefault
textanyRequired—
delimiteranyRequired—
instance_numnumberOptional1

Return type

Text

Differences from Excel

Formualizer supports the arguments through instance_num. Excel also accepts match_mode, match_end and if_not_found.

Remarks

  • Delimiter matching is case-sensitive.
  • instance_num defaults to 1; negative instances search from the end.

Error cases

  • instance_num=0 or empty delimiter returns #VALUE!.
  • If requested delimiter occurrence is not found, returns #N/A.

Examples

Split the label at the first dash.

Formula =TEXTAFTER("East-Q2-2024","-")

Expected result Q2-2024

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Use the second occurrence of the delimiter.

Formula =TEXTAFTER("East-Q2-2024","-",2)

Expected result 2024

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Split at a delimiter that begins the input text.

Formula =TEXTAFTER("-East-","-")

Expected result East-

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

The specified delimiter is absent from the source text.

Formula =TEXTAFTER("East-Q2-2024","/")

Expected result #N/A

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Text after first delimiter

Formula =TEXTAFTER("a-b-c", "-")

Expected result b-c

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Text after last delimiter

Formula =TEXTAFTER("a-b-c", "-", -1)

Expected result c

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

Is matching case-sensitive?

Yes. TEXTAFTER performs case-sensitive delimiter matching in this implementation.

Implementation

Engine source

On this page