Artículos con :
Cerrar
Changelog
Cerrar
Artículos con :
Cerrar
Pruébelo en la nube

SORT Function

The SORT function is one of the lookup and reference functions. It is used to sort a range of data or an array and to return the sorted array.

Syntax

SORT(array, [sort_index], [sort_order], [by_col])

The SORT function has the following arguments:

Argument Description
array The range of data to sort.
sort_index An optional argument. A number identifying the column or the row to sort by.
sort_order An optional argument. A number determining the sorting order:
  • 1 or omitted for ascending order (by default),
  • -1 for descending order.
by_col An optional argument. A value indicating the sorting direction:
  • FALSE or omitted for sorting by rows when your data is organized vertically.
  • TRUE for sorting by columns when your data is organized horizontally.

Notes

Please note that this is an array formula. To learn more, please read the Insert array formulas article.

How to apply the SORT function.

Examples

The figure below displays the result returned by the SORT function.

SORT Function

Volver a la página anterior
Probar ahora gratis Pruebe y tome su decisión No se necesita instalar algo para
ver todas las posibilidades en la acción