How to Use TEXTAFTER Formula in Excel + Tips
Learn how to use TEXTAFTER function in Excel step-by-step to get text after specific delimiter, very easy and useful.
Hello everyone! Today i will show you how to use TEXTAFTER formula in Excel step by step. TEXTAFTER is available in Excel 2021 and Excel 365.
What is TEXTAFTER Function in Excel?
The TEXTAFTER function help you extract all text that appears after a specific character or delimiter (like space " ", dash -, at sign @, or comma ,). In old Excel, you need combine RIGHT, LEN, and FIND formulas together, but TEXTAFTER make your formula very short and simple!
📚 Related Tutorial: Want to extract text BEFORE a delimiter instead? Check out How to Use TEXTBEFORE Function in Excel!
🛠️ Formula Syntax
=TEXTAFTER(text, delimiter, [instance_num], [match_mode], [match_end], [if_not_found])
text: The cell or original text string you want to extract from (example:A1).delimiter: The symbol or text character you look for (example:"@"," ","-").[instance_num](Optional): Which occurrence of delimiter to match. Use positive number (like1or2) from left to right, or negative number (like-1) from right to left:0for case-sensitive match (default),1for case-insensitive match.[if_not_found](Optional): What text to show if delimiter is not found in cell.
📊 Simple Examples
Example 1: Extract Last Name from Full Name
=TEXTAFTER(A1, " ")
If cell A1 contains "John Smith", formula returns: Smith
Example 2: Extract Domain Name from Email Address
=TEXTAFTER(A1, "@")
If cell A1 contains "meng@gmail.com", formula returns: gmail.com
Example 3: Extract Text After Dash -
=TEXTAFTER(A1, "-")
If cell A1 contains "John-Smith", formula returns: Smith
Example 4: Get Text After 2nd Delimiter
=TEXTAFTER(A1, "-", 2)
If cell A1 contains "2026-09-14", setting instance_num to 2 returns: 14
Example 5: Extract Text After LAST Delimiter (Negative Instance -1)
=TEXTAFTER(A1, "-", -1)
If cell A1 contains "ABC-123-XYZ", using -1 searches from right to left and returns: XYZ
Example 6: Avoid #N/A Error if Delimiter Missing
If delimiter might not exist in cell, use IFNA to return original cell A1 cleanly:
=IFNA(TEXTAFTER(A1, "-"), A1)
⚡ Modern Excel Text Functions Comparison
| Function | Purpose | Example |
|---|---|---|
TEXTBEFORE | Get text before a specific delimiter | =TEXTBEFORE(A1, "@") |
TEXTAFTER | Get text after a specific delimiter | =TEXTAFTER(A1, "@") |
TEXTSPLIT | Split text into columns or rows by delimiter | =TEXTSPLIT(A1, ",") |
TEXTJOIN | Combine text from multiple cells with delimiter | =TEXTJOIN(", ", TRUE, A1:A5) |
💡 Quick Tips & Easy Memory Rule:
- Memory Rule:
TEXTBEFORE= ⬅️ Before,TEXTAFTER= ➡️ After.- Pro Tip for File Paths or URLs: Use
-1forinstance_numto quickly extract file extension or file name after the last slash/or backslash\!
📚 Related Resources & Tutorials
Related Tutorials
Opens in new tab ↗How to Use TEXTBEFORE Formula in Excel + Tips
Learn how to use TEXTBEFORE function in Excel step-by-step to get text before specific delimiter, very easy and useful.
How to Use TEXTJOIN Formula in Excel (Video in Khmer) + Tips
Learn how to use TEXTJOIN function in Excel step-by-step to combine text from multiple cells with delimiters and skip blank cells easily.
How to Use REDUCE Function in Excel + Tips
Learn how to use REDUCE function in Excel step-by-step to swap or insert text based on position with simple examples.