Extract everything after a specific character or word — no FIND, no MID, no nesting.
TEXTAFTER returns the text that appears after a specified delimiter. It is the companion to TEXTBEFORE and replaces the old MID + FIND approach for splitting text.
TEXTAFTER(text, delimiter, [instance_num], [match_mode], [match_end], [if_not_found])| Argument | What it means |
|---|---|
| text required | The text string to extract from. |
| delimiter required | The character or string to search for. |
| instance_num optional | Which occurrence to use. Default is 1 (first). Use -1 for the last occurrence. |
| match_mode optional | 0 = case-sensitive (default), 1 = case-insensitive. |
| if_not_found optional | What to return if delimiter isn't found. Defaults to #N/A. |
=TEXTAFTER(A2, " ")If A2 contains "Sarah Johnson", this returns "Johnson".
=TEXTAFTER(A2, "@")If A2 contains "sarah@example.com", this returns "example.com".
=TEXTAFTER(A2, ".", -1)Using -1 finds the last dot, so "report.Q2.2026.xlsx" correctly returns "xlsx", not "Q2".
Extract the city from "12 Oak Street, Birmingham, UK":
=TEXTBEFORE(TEXTAFTER(A2, ", "), ", ")TEXTAFTER strips everything up to and including the first comma-space, then TEXTBEFORE strips everything from the second comma-space onward.
Type it in a live spreadsheet, get instant feedback. No videos, no downloads.
Start practising free →