Site icon Kaizen.Personal computer work.

TEXTAFTER Function. Get substrings after a specified character (Microsoft Excel)

Japanese version.

The TEXTAFTER function is a new function added to Excel in September 2022.
It specifies the character to search for and retrieves the text after that character.
This function is the reverse function of TEXTBEFORE.

Originally, you had to combine FIND and RIGHT, but now you only need one function. now only one function is needed.

How it works

=TEXTAFTER(Text,Delimiter,Instance_num,Match_mode,Match_end,If_not_found)
NameOmissionExplanation
TextRequired argument.
Specify text.
DelimiterRequired argument.
Specify the characters to search for.
Two or more characters are also acceptable.
Instance_num1Specifies the number of Delimiter.
If omitted, it is 1. Text is obtained up to the first Delimiter.
If a negative number is specified, it is the number of pieces from the right.
Match_mode1Specifies whether to be case-sensitive.
0: Case sensitive.
1: Not case sensitive.
Match_end00: Performs a normal search.
1:The search is performed on the assumption that there is a delimiter at the end of the text.
If there is no delimiter in the text, the full text is the first result.
If_not_found#N/ASpecifies the result if the delimiter is not present.

Demonstrate

Basically, the first argument specifies the text.
The second argument specifies the characters to be searched.

The second argument can be two or more characters.

Argument 3: Instance_num

The third argument specifies the number of Delimiter to be obtained.
If omitted, it is set to 1. Up to the first Delimiter.

None
1
2

If a negative number is specified, the number of pieces will be from the right.

-1
-2

Argument 4: Match_mode

The fourth argument specifies whether it is case-sensitive.

0: Case sensitive.
1: Not case sensitive.

If 1 is specified, the first result is the full text.

Argument 5: Match_end

The fifth argument specifies the search method.

Compared to the TEXTBEFORE function, this argument can be used in fewer situations than the TEXTBEFORE function.

Specify 0: No search results because there is no fourth Delimiter

If 1 is specified, the search assumes that Delimiter exists at the end of the text.

However, since there are no characters after the tail, the result will be blank.

Specify 1: Search on the assumption that there is a Delimiter at the end. There is no character after the end, so the result is blank.

If Delimiter is not found in 1, the result of -1 is the full text.

Argument 6:If_not_found

The sixth argument specifies the result if not found.

If omitted, #N/A

Spill

If the argument were a cell range, it would be Spill .

You would mainly make "Text" a cell range.

---

Links

Microsoft Excel Functions Text

Exit mobile version