ID EN
#Dynamic array

TEXTAFTER

Excel Functions 🇮🇩 Bahasa Indonesia

Ekstrak teks setelah pembatas

Syntax

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

Arguments

Parameter Deskripsi
text The text string to extract from.
delimiter The character(s) that delimit the text.
instance_num [optional] The instance of the delimiter in text. Default is 1.
match_mode [optional] Case-sensitivity. 0 = enabled, 1 = disabled. Default is 0.
match_end [optional] Treat end of text as delimiter. 0 = disabled, 1 = enabled. Default is 0.
if_not_found [optional] Value to return when no match is found. #N/A is default.

Return Value

String teks yang diekstraksi

Details

Fungsi Excel TEXTAFTER mengekstrak teks yang muncul setelah pembatas tertentu. Ketika beberapa pembatas muncul dalam teks, TEXTAFTER dapat mengembalikan teks yang muncul setelah pembatas ke-n. TEXTAFTER juga dapat mengekstrak teks setelah pembatas tertentu saat menghitung dari akhir string teks (yaitu, mendapatkan teks setelah pembatas kedua hingga terakhir). Perhatikan bahwa Excel memiliki tiga fungsi terkait yang memisahkan teks: Untuk mengekstrak teks yang muncul setelah karakter atau substring tertentu, sediakan teks dan karakter untuk digunakan sebagai pembatas dalam tanda kutip ganda (""). Misalnya, untuk mengekstrak nama depan dari "Jones, Bob", berikan koma dalam tanda kutip ganda (",") sebagai pembatas: Anda dapat menggunakan lebih dari satu karakter untuk pembatas. Misalnya untuk mengekstrak dimensi kedua pada teks str

Contoh

Basic usage

To extract the text that occurs after a specific character or substring, provide the text and the character(s) to use as delimiter in double quotes ("

EXCEL
=TEXTAFTER("Jones,Bob",",") // returns "Bob"
Basic usage

You can use more than one character for delimiter. For example to extract the second dimension in the text string "12 ft x 20 ft", use " x "for delimi

EXCEL
=TEXTAFTER("12 ft x 20 ft"," x ") // returns "20 ft"
Text after delimiter with positive instance number

The formulas below extract text after the first and second occurrence of the hyphen character ("-"):

EXCEL
=TEXTAFTER("ABX-112-Red-Y","-",1) // returns "112-Red-Y"
=TEXTAFTER("ABX-112-Red-Y","-",2 // returns "Red-Y"
Text after delimiter with negative instance number

This is very handy because you don't need to know how many words are in the sentence to begin with. The formulas below extract text after the last and

EXCEL
=TEXTAFTER("ABX-112-Red-Y","-",-1) // returns "Y"
=TEXTAFTER("ABX-112-Red-Y","-",-2) // returns "Red-Y"
Match end of text

Normally, TEXTAFTER does not treat the end of a text string as a delimiter. For example, the formula below asks for the text after delimiter 3, counti

EXCEL
=TEXTAFTER("ABX-123-Red-XYZ","-",-3) // returns "123-Red-XYZ"
Match end of text

And this formula returns #N/A because there is no fourth delimiter from the end:

EXCEL
=TEXTAFTER("ABX-123-Red-XYZ","-",-4) // returns #N/A

See Also

TEXTJOIN TEXTSPLIT TEXTBEFORE CONCAT