Pomoc LibreOfficeDev 27.2
Returns the text that occurs before the start of given instance of a delimiter substring.
TEKST.PRZED ( tekst [; ogranicznik [; numer instancji [; tryb dopasowania [; koniec dopasowania [; jeśli nie znaleziono ]]]]])
Tekst: tekst oryginalny.
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
Tryb dopasowania: (opcjonalnie) ustaw na 1, aby wykonać dopasowanie bez uwzględniania wielkości liter. Domyślnie jest to 0.
Koniec dopasowania: (opcjonalne) ustaw na 1, aby traktować koniec tekstu jako ogranicznik. Domyślnie jest to 0.
If Not Found: (optional) the value returned if no match is found. The default is #N/A.
=TEKST.PRZED("To be or not to be";" be";2;0;0;"@@@") zwraca ciąg „To be or not to”, uwzględniając maksymalnie drugie wystąpienie ogranicznika „be”.
=TEKST.PRZED("To be or not to be";"question";1;0;0;"@@@") zwraca tekst „@@@”, ponieważ ogranicznik „question” nie znajduje się w tekście źródłowym.
COM.MICROSOFT.TEXTBEFORE