ExcelFlux

TEXTAFTER function

text that occurs after given character or string.

Text · Excel 2024+

Where can you use it?

Data preparation and reporting teams. Use this group to clean, split or reformat IDs, names and descriptions before using them in reports.

Scenario in the workbook

Extract the ID after the separator as text. Leading zeros are preserved.

A worked example from the workbook

RowAB
6DocumentNew segment
7INV-042NEW
8INV-119RCV
9INV-126ARC
Record 1
=TEXTAFTER(A7,"-")

Expected result042

See the inputs and instructions for all 3 examples

Copyable formulas

English Excel · en-US
=TEXTAFTER("INV-042","-")
Turkish Excel · tr-TR
=SONRAKİMETİN("INV-042";"-")

Expected result

“042”

Worked examples

Extract the ID after the separator as text. Leading zeros are preserved.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A B
6 Document New segment
7 INV-042 NEW
8 INV-119 RCV
9 INV-126 ARC
Case Formula Expected result
Record 1 =TEXTAFTER(A7,"-") 042
Record 2 =TEXTAFTER(A8,"-") 119
Record 3 =TEXTAFTER(A9,"-") 126
Microsoft Excel reference