Skip to content
Excel functionNot in Google Sheets

TEXTAFTER function in Google Sheets

Google Sheets doesn't have TEXTAFTER — here's what does.

Google Sheets gets there with SPLIT + INDEX, or REGEXEXTRACT when you need the last occurrence.

What TEXTAFTER does in Excel

Returns text that occurs after given character or string

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

Convert TEXTAFTER formulas to Google Sheets

Before and after, formula by formula.

  1. The domain after the @:

    Excel
    =TEXTAFTER(A2, "@")
    Google Sheets
    =INDEX(SPLIT(A2, "@"), 2)
  2. Everything after the LAST slash:

    Excel
    =TEXTAFTER(A2, "/", -1)
    Google Sheets
    =REGEXEXTRACT(A2, "([^/]*)$")

Converting more than one formula? The Excel ↔ Sheets translator rewrites whole workbooks and flags every TEXTAFTER so none slip through silently.

Browse Excel text functions