Skip to main content

Text formula page

Extract Text After Character Formula

Use this when the useful value appears after a known separator.

Best for

Extract text after a character in Excel or Google Sheets.

What it returns

If A2 is SKU-1001-East, the result starts with 1001-East in Excel and returns 1001 in the Sheets split example.

Copy formulas

Excel formula
=TEXTAFTER(A2, "-")
Google Sheets formula
=INDEX(SPLIT(A2, "-"), 1, 2)
Excel / Google Sheets difference

Excel TEXTAFTER returns everything after the first delimiter by default, while the shown Google Sheets formula returns only the second split segment.

Example data

Raw TextExample Result
Maya ChenMaya
SKU-1001-EastSKU
https://www.example.com/pricingexample.com
Acme North Acme North
What it returns

If A2 is SKU-1001-East, the result starts with 1001-East in Excel and returns 1001 in the Sheets split example.

How the formula works

  • A2 is the source text.
  • The delimiter decides where extraction starts.
  • For multiple delimiters, specify which segment you need.
Syntax pieceRole in the formula
A2The source text to inspect.
"-"The delimiter separating the source segments.
instance_num or segment indexExcel counts delimiter occurrences; the Google Sheets version selects a numbered SPLIT segment.

Verified examples

Return the remainder in Excel
=TEXTAFTER(A2, "-")

Excel: Enter SKU-1001-East in A2. Returns: 1001-East

Return the second segment in Google Sheets
=INDEX(SPLIT(A2, "-"), 1, 2)

Google Sheets: Enter SKU-1001-East in A2. Returns: 1001

Return text after the second dash
=TEXTAFTER(A2, "-", 2)

Excel: Enter SKU-1001-East in A2. Returns: East

Common errors and fixes

IssueLikely causeFix
Excel and Google Sheets return different spansTEXTAFTER returns the remainder after the first delimiter, while INDEX(SPLIT(...),1,2) returns only the second segment.Choose the platform formula deliberately, or use the Excel instance_num and a Sheets segment index when the same segment is required.
The source has no delimiterThe requested delimiter does not occur in A2.Verify the exact separator and add IFERROR when missing separators should produce a fallback.
The extracted value has the wrong segment or spacesThe delimiter occurrence or Sheets column index is wrong, or the source contains spaces around the separator.Use instance_num 2 for the text after the second dash, or select Sheets segment 3, then TRIM if needed.

When not to use this formula

  • Do not use the basic Google Sheets formula when the desired output is the entire remainder after the delimiter; select the required segment or join the remaining segments explicitly.

Alternatives

AlternativeWhen to use it
Split Text FormulaUse when every segment should be returned for inspection or further calculations.
Extract Text Before CharacterUse when the needed value is the prefix before a delimiter.

Related formulas

Official references

FAQ

Why does Excel return 1001-East but Sheets returns 1001?

TEXTAFTER returns the full remainder after the first dash; INDEX with the second SPLIT segment returns only the next segment.

How do I extract East?

In Excel use TEXTAFTER(A2, "-", 2); in Google Sheets use INDEX(SPLIT(A2, "-"), 1, 3) to select the third segment.