XVERGLEICH

Searches for a value in a one-dimensional array and returns the relative position of the item.

XMATCH outperforms function MATCH as it allows searches according to the search mode.

Syntax

XMATCH(Lookup; Array [; MatchType [; SearchMode ] ] )

Verweis: Der Wert eines beliebigen Typs, nach dem in Matrix gesucht werden soll.

Matrix: ist der Bezug der zu durchsuchenden Matrix oder des zu durchsuchenden Bereichs.

MatchType: (optional) specifies the match type. Values can be:

SearchMode: (optional) specifies the search mode to use.

warning

MatchType values 2 and 3 cannot be combined with binary search (SearchMode value 2 or -2).


note

Any of the optional arguments can be omitted. An optional argument requires all preceding separators to be present.


Beispiele

Angenommen, wir haben eine kleine Datenbanktabelle erstellt, die den Zellbereich A1:DO4 einnimmt und grundlegende Informationen über 118 chemische Elemente enthält. Die erste Spalte enthält die Zeilenüberschriften „Element“, „Symbol“, „Atomzahl“ und „Relative Atommasse“. Nachfolgende Spalten enthalten die relevanten Informationen für jedes der Elemente, von links nach rechts nach der Ordnungszahl geordnet. Zum Beispiel enthalten die Zellen B1:B4 „Wasserstoff“, „H“, „1“ und „1,008“, während die Zellen DO1:DO4 „Oganesson“, „Og“, „118“ und „294“ enthalten.

A

B

C

D

...

DO

1

Element

Wasserstoff

Helium

Lithium

...

Oganesson

2

Symbol

H

He

Li

...

Og

3

Ordnungszahl

1

2

3

...

118

4

Relative Atommasse

1.008

4.0026

6.94

...

294


=XMATCH("Atomic Number",A1:A4) returns 3, the third line of the A1:A4 array.

=XMATCH("Li",A2:DO2) returns 4, the fourth column of the A2:DO2 array.

Technische Information

tip

Diese Funktion ist seit LibreOffice 24.8 verfügbar.


Diese Funktion ist nicht Bestandteil des Standards Open Document Format für Office-Anwendungen (OpenDocument) Version 1.3. Teil 4: Format für neu berechnete Formeln (OpenFormula). Der Namensraum ist

COM.MICROSOFT.XMATCH