Skip to content

How to get text after a character or delimiter

Topic:Text manipulation
Excel & Google Sheets
=IF(B2="","Enter a delimiter",IFERROR(MID(A2,FIND(B2,A2)+LEN(B2),LEN(A2)),"Delimiter not found"))

Verified example

Computed by a real spreadsheet engine on the sample data below.

TextDelimiter
invoice__2026__0916__

=IF(B2="","Enter a delimiter",IFERROR(MID(A2,FIND(B2,A2)+LEN(B2),LEN(A2)),"Delimiter not found"))2026__0916

Both expressions are checked against an independently calculated expected result in HyperFormula. This is a sample execution check, not native Excel or Google Sheets certification.

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Put the input text in A2 and the delimiter in B2.
  2. 2FIND returns the position of the first delimiter. Adding LEN(B2) advances past the entire delimiter, not just one character.
  3. 3MID takes the remaining text; LEN(A2) is a safe upper bound for its requested character count.
  4. 4Use an output cell outside the sample. An empty delimiter or missing delimiter returns the explicit message shown in the formula.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Does this support more than one delimiter character?

Yes. LEN(B2) skips all characters in the delimiter.

Why use a missing-delimiter message?

It distinguishes an unmatched input from a legitimate empty suffix. Investigate other input errors rather than blindly treating every message as valid data.

More on Text manipulation

See all →

Sources and compatibility

Reviewed 2026-09-16

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: