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.
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:
-
0: exact match (default). If Lookup value is not found and NotFound text is omitted, then return the #N/A error.
-
-1: attempt exact match. If Lookup value is not found, then return the next smaller item.
-
1: attempt exact match. If Lookup value is not found, then return the next larger item.
-
2: a wildcard match where characters *, ?, and ~ have special meanings.
SearchMode: (optional) specifies the search mode to use.
The function is always case insensitive, independent from the setting of Case sensitive checkbox in - .
-
1: returns the first occurrence starting from the first item of Array (default).
-
-1: reverse search. Returns the first occurrence starting from the last item of Array.
-
2: binary search that relies on Array being sorted in ascending order. If not sorted, invalid results will be returned.
-
-2: binary search that relies on Array being sorted in descending order. If not sorted, invalid results will be returned.
Any of the optional arguments can be omitted. An optional argument is required to be preceded by the preceding separators.
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.
Diese Funktion ist seit LibreOfficeDev 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