Ajuda do LibreOfficeDev 27.2
Returns the text that occurs before the start of given instance of a delimiter substring.
TEXTOANTES( Texto [; Delimitador [; Número instância [; Modo correspondência [; Correspondência no fim [; Se não encontrado ]]]]])
Texto: o texto original.
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
Modo correspondência: (opcional) defina 1 para uma busca sem diferença entre maiúsculas e minúsculas. O valor padrão é 0.
Correspondência no fim: (opcional) defina 1 para tratar o fim do texto como delimitador. O valor padrão é 0.
If Not Found: (optional) the value returned if no match is found. The default is #N/A.
=TEXTOANTES("Ser ou não ser";" ser";2;0;0;"@@@") retorna a cadeia de caracteres "Ser ou não", colhendo antes da segunda instância do delimitador " ser".
=TEXTOANTES("Ser ou não ser";"questão";1;0;0;"@@@") retorna o texto "@@@" por que o delimitador "questão" não existe no texto de origem.
COM.MICROSOFT.TEXTBEFORE