Hilfe für LibreOfficeDev 27.2
Returns the text that occurs before the start of given instance of a delimiter substring.
TEXTVOR( Text [; Trennzeichen [; Nummer des Vorkommens [; Übereinstimmungsmodus [; Textende [; Nicht gefunden ]]]]])
Text: Der Originaltext.
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.
Instance Number: (optional) the instance of the delimiter before which to extract text. The default is 1. A negative number starts searching from the end. Value 0 returns the error #N/A
Übereinstimmungsmodus: (optional) Wert auf 1 setzen, um eine Übereinstimmung ohne Berücksichtigung der Groß- und Kleinschreibung durchzuführen. Der Standardwert ist 0.
Textende: (optional) Auf 1 setzen, um das Textende als Trennzeichen zu behandeln. Der Standardwert ist 0.
If Not Found: (optional) the value returned if no match is found. The default is #N/A.
=TEXTBEFORE("To be or not to be";" be";2;0;0;"@@@") returns the string "To be or not to", taking up to the second instance of the delimiter " be".
=TEXTVOR("Sein oder Nichtsein";"Frage";1;0;0;"@@@") gibt den Text "@@@" zurück, weil das Trennzeichen "Frage" nicht im Quelltext vorkommt.
COM.MICROSOFT.TEXTBEFORE