TEKST.VOOR

Returns the text that occurs before the start of given instance of a delimiter substring.

Syntaxis

TEKST.VOOR(“Tekst”; “Scheidingsteken”(optioneel); Aantal scheidingstekens (optioneel)r; Hoofdlettergevoelig (optioneel); Overeenkomsteinde (optioneel); “Indien niet gevonden”)

Tekst: de originele tekst.

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

Hoofdlettergevoelig: (optioneel) stel in op 1 om een hoofdletterongevoelige match uit te voeren. De standaardwaarde is 0.

Overeenkomsteinde: (optioneel) stel in op 1 om het einde van de tekst als scheidingsteken te beschouwen. De standaardwaarde is 0.

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

Notitiepictogram

Elk van de optionele argumenten kan worden weggelaten. Voor een optioneel argument moeten alle voorgaande scheidingstekens aanwezig zijn.


Voorbeelden

=TEKSTVOOR("To be or not to be";" be";2;0;0;"@@@") Retourneert de tekenreeks "To be or not to", waarbij maximaal de tweede instantie van het scheidingsteken "be" wordt meegenomen.

=TEKST.VOOR("Te zijn of niet te zijn";"vraagteken";1;0;0;"@@@") retourneert de tekst "@@@" omdat het scheidingsteken "vraagteken" niet in de brontekst voorkomt.

Technische informatie

Tippictogram

Deze functie is beschikbaar sinds LibreOfficeDev 25.8.


Deze functie maakt GEEN deel uit van de standaard Open Document Format for Office Applications (OpenDocument) Versie 1.3. Deel 4: Herberekende formule (OpenFormula)-indeling. De naamruimte is

COM.MICROSOFT.TEXTBEFORE

Help ons, alstublieft!

Help ons, alstublieft!