SORTIEREN

Sortiert den Inhalt eines Bereichs oder einer Matrix.

note

Geben Sie die Formel als Matrixformel ein.


Syntax

SORT(Range [; SortIndex [; SortOrder [; ByCol] ] ])

Range: the range or array to sort.

SortIndex: (optional). The number indicating the row or column to sort by.

SortOrder: (optional). A number indicating the desired sort order; 1 for ascending order (default), -1 for descending order.

ByCol: (optional). A logical value indicating the desired sort direction; FALSE to sort by row (default), TRUE to sort by column.

note

Any of the optional arguments can be omitted. An optional argument is required to be preceded by the preceding separators.


Beispiele

Betrachten Sie folgende Tabelle

A

B

C

1

Produktname

Sales

Revenue

2

Buntstift

20

65

3

Stift

35

85

4

Schulbuch

20

190

5

Buch

17

180

6

Buntstift-Set

nicht

nicht


Beispiel mit aufsteigender Reihenfolge

{=SORTIEREN(A2:C6,2,1)}

Sortiert den Bereich A2:C6 basierend auf der zweiten Spalte in aufsteigender Reihenfolge (Umsatz).

Buch

17

180

Buntstift

20

65

Schulbuch

20

190

Stift

35

85

Buntstift-Set

not

not


Beispiel mit absteigender Reihenfolge

{=SORTIEREN(A2:C6,3,-1)}

Sortiert den Bereich A2:C6 basierend auf der dritten Spalte in absteigender Reihenfolge (Umsatz).

Buntstift-Set

not

not

Schulbuch

20

190

Buch

17

180

Stift

35

85

Buntstift

20

65


Technische Information

tip

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.SORT