Excel TEXTAFTER Function: Syntax, Examples & Tips

The TEXTAFTER function extracts text following a specified delimiter, allowing for customizable match modes and additional options.
Excel
=TEXTAFTER(text, delimiter, [instance_num], [match_mode], [match_end])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Need more than a single TEXTAFTER formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

On this page
  1. Parameters
  2. What is a TEXTAFTER Formula in Excel?
  3. A Practical Example
  4. TEXTAFTER Formula
  5. Result of the Formula
  6. Why Use TEXTAFTER?
  7. Key Takeaways:
  8. Example use case

Parameters

text:
The text string from which you want to extract the substring that appears after the specified delimiter.

delimiter:
The character or characters that determine where the extraction of the substring should begin.

instance_num:
An optional parameter that specifies which occurrence of the delimiter to use for the extraction. If omitted, the first occurrence is used.

match_mode:
An optional parameter that specifies the matching behavior. It can be set to 0 for an exact match or 1 for a case-insensitive match.

match_end:
An optional parameter that specifies whether to match the end of the text string. If set to TRUE, the function will consider the end of the text for the extraction; if FALSE or omitted, it will not.

What is a TEXTAFTER Formula in Excel?

The TEXTAFTER function in Excel is a useful tool that allows you to extract text from a string after a specified delimiter. It simplifies the process of parsing strings by returning the portion of text that appears after a defined character or substring.

In simpler terms, the TEXTAFTER function helps you isolate specific parts of a text string, making it easier to analyze or manipulate data.

A Practical Example

Imagine you have a list of email addresses in an Excel spreadsheet, and you want to extract the domain names from these addresses.

Email Data Table:

You want to find the domain names from these email addresses.

TEXTAFTER Formula

To extract the domain names from the email addresses, you would use the TEXTAFTER formula as follows:

Excel
=TEXTAFTER(A2, "@")

Breakdown of the Formula:

  • A2: This is the cell containing the text string (email address) from which you want to extract the domain.
  • "@": This is the delimiter that defines where to start extracting text after.

Result of the Formula

When you apply the formula to each email address, it extracts the domain names as follows:

Domain Name
example.com
sample.org
domain.net
website.com
service.io

Here, the extracted domain names are shown for each corresponding email address.

Why Use TEXTAFTER?

The TEXTAFTER function is particularly useful when you need to extract specific parts of a text string based on a delimiter. It allows you to quickly parse data without the need for complex formulas or manual editing.

Key Takeaways:

  • TEXTAFTER: Extracts text from a string after a specified delimiter.
  • Efficient Data Parsing: Helps you quickly isolate parts of text without complex manipulation.
  • Common Use Cases: Ideal for extracting domains from email addresses, parsing CSV data, and any scenario where you need to split strings based on specific characters.

Understanding how to use the TEXTAFTER function can significantly enhance your data manipulation capabilities in Excel, enabling you to work more efficiently with text data.

Happy extracting!

Example use case

You have a list of email addresses in Column A, and you want to extract the domain names from these addresses for analysis. You can use the TEXTAFTER function to easily retrieve the part of the email address that comes after the "@" symbol. This allows for efficient categorization of email domains, helping in understanding customer demographics and targeting marketing efforts without the need for complex text manipulation techniques.

Beyond the TEXTAFTER function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.