SORTBY

Ordena el contingut d'un interval o matriu basant-se en els valors d'un interval o matriu corresponents.

Sintaxi

SORTBY(Range; SortByRange1; SortOrder1 [; SortByRange2; SortOrder2 [; ...] ])

Range: The array or range to sort.

SortByRange1; SortByRange2;... : range 1, range 2,... are the arrays or ranges to sort on.

SortOrder1; SortOrder2;... : order 1, order 2,... are the orders to use for sorting. 1 for ascending, -1 for descending. Default is ascending.

Icona de nota

Es pot ometre qualsevol dels arguments opcionals. Un argument opcional requereix que tots els separadors anteriors estiguin presents.


Exemples

{=SORTBY(A2:C7;A2:A7;1;C2:C7;-1)}

Sort the range A2:C7 based on the first column in ascending order and third column in descending order.

Informació tècnica

Icona de consell

Aquesta funció és disponible des de la versió 24.8 del LibreOffice.


This function is NOT part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

COM.MICROSOFT.SORTBY

Ens cal la vostra ajuda!

Ens cal la vostra ajuda!