Aidez-nous !

TEXTE.APRES

Renvoie le texte qui suit la fin d'une instance donnée d'une sous-chaîne séparatrice.

Syntaxe

TEXTE.APRES( Texte [; Délimiteur [; Numéro Instance [; Mode Correspondre [; Correspondre à la fin [; Si non trouvé ]]]]])

Texte : le texte original.

Délimiteur : (facultatif) le délimiteur. Plusieurs délimiteurs peuvent être fournis. S'il est omis ou fourni comme une chaîne vide, renvoie l'erreur #N/D ou la valeur exprimée par Si non trouvé.

Numéro d'instance : (facultatif) l'instance du délimiteur après laquelle extraire le texte. La valeur par défaut est 1. Un nombre négatif lance la recherche à partir de la fin. La valeur 0 renvoie l'erreur #N/D.

Mode Correspondre : (facultatif) défini sur 1 pour effectuer une correspondance insensible à la casse. La valeur par défaut est 0.

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

Si non trouvé : (facultatif) la valeur renvoyée si aucune correspondance n'est trouvée. La valeur par défaut est #N/D.

Icône Remarque

N'importe quel arguments facultatifs peut être omis. Un argument facultatif nécessite que tous les séparateurs précédents soient présents.


Exemples

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

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

Interactions between Delimiter, Instance number and MatchEnd:

Text

Delimiter

Instance

MatchMode

MatchEnd

IfNotFound

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

@@@

#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

@@@

#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

@@@

@@@


Informations techniques

Icône Astuce

Cette fonction est disponible depuis LibreOfficeDev 25.8.


Cette fonction ne fait PAS partie de la norme Open Document Format for Office Applications (OpenDocument) Version 1.4. Partie 4 : format de formule recalculée (OpenFormula). L'espace de noms est

COM.MICROSOFT.TEXTAFTER