Please support us!

7zDWB‖

rogfF‖TEXTAFTER

T7vfL‖Returns the text that occurs after the end of a given instance of a delimiter substring.

ebLBc‖Syntax

sFgek‖TEXTAFTER( Text [; Delimiter [; Instance Number [; Match Mode [; Match End [; If Not Found ]]]]])

zZodV‖Text: the original text.

dbTVG‖Delimiter: (optional) the delimiter. Multiple delimiters can be supplied. If omitted or supplied as an empty string, then returns the error #N/A or the value expressed by If Not Found.

iwBQs‖Instance Number: (optional) the instance of the delimiter after which to extract text. The default is 1. A negative number starts searching from the end. Value 0 returns the error #N/A.

hhUE8‖Match Mode: (optional) set to 1 to perform a case-insensitive match. The default is 0.

Qbp75‖Match End: (optional) set to 1 to treat the end of text as an additional delimiter. The default is 0.

QbLRS‖If Not Found: (optional) the value returned if no match is found. The default is #N/A.

Note Icon

s37P8‖Any of the optional arguments can be omitted. An optional argument requires all preceding separators to be present.


GAZG2‖Examples

JB8As‖=TEXTAFTER("To be or not to be";"or ";1;0;0;@@@) returns the string "not to be", taking after the delimiter "or ".

sFqEA‖=TEXTAFTER("To be or not to be";"question";1;0;0;@@@) returns the text @@@ because the delimiter "question" is not in the source text.

CjY2P‖Interactions between Delimiter, Instance number and MatchEnd:

KFarP‖Text

BaVCN‖Delimiter

QLwdd‖Instance

y9qee‖MatchMode

XUiwG‖MatchEnd

2SCWQ‖IfNotFound

3DESQ‖TEXTAFTER

to_be_or_not_to_be

to

-4

0

0

@@@

@@@

to_be_or_not_to_be

to

-3

0

0

@@@

@@@

to_be_or_not_to_be

to

-2

0

0

@@@

_be_or_not_to_be

to_be_or_not_to_be

to

-1

0

0

@@@

_be

to_be_or_not_to_be

to

0

0

0

@@@

Swhe3‖#N/A

to_be_or_not_to_be

to

1

0

0

@@@

_be_or_not_to_be

to_be_or_not_to_be

to

2

0

0

@@@

_be

to_be_or_not_to_be

to

3

0

0

@@@

@@@

to_be_or_not_to_be

to

4

0

0

@@@

@@@

to_be_or_not_to_be

to

-4

0

0

@@@

@@@

to_be_or_not_to_be

to

-3

0

1

@@@

to_be_or_not_to_be

to_be_or_not_to_be

to

-2

0

1

@@@

_be_or_not_to_be

to_be_or_not_to_be

to

-1

0

1

@@@

_be

to_be_or_not_to_be

to

0

0

1

@@@

8gVGH‖#N/A

to_be_or_not_to_be

to

1

0

1

@@@

_be_or_not_to_be

to_be_or_not_to_be

to

2

0

1

@@@

_be

to_be_or_not_to_be

to

3

0

1

@@@

to_be_or_not_to_be

to

4

0

1

@@@

@@@


XAFa7‖Technical information

Tip Icon

UoJab‖This function is available since LibreOfficeDev 25.8.


Gewrf‖This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.4. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.TEXTAFTER