If values in the source data change, the result from SORT will update automatically.

The SORT function takes fourarguments:array,sort_index,sort_order, andby_col.

The first argument,array, is the range or array to be sorted.

SORT function example - sort by score, descending

This is the only required argument.

By default, the SORT function will sort values in ascending order using thefirstcolumn inarray.

For example, to sort by the third column in a range of data, use 3 forsort_index.

SORT function example - sort by score, descending

The optionalsort_orderargument determines sort direction.

Use 1 forascendingorder and -1 fordescendingorder.

However, by usingarray constantsforsort_indexandsort_order, it can be done.This video explains how.

SORT function example - sort by score, descending

SORT vs SORTBY

Excel contains two functions for sorting: SORT and SORTBY.

The SORT function is the easier option when data already contains the values needed for sorting.

UseSORTBYwhen the values you oughta sort by arenotpart of the data being sorted.

SORT function example - sort by score, descending

The output from FILTER is dynamic.

If source data or criteria change, FILTER will return a new set of results.

Values can be sorted by one or more columns.

SORT function example - sort by score, descending

SORT returns a dynamic array of results.

The range or array used to sort does not need to appear in results.

RANDARRAY Function

The Excel RANDARRAY function generates an array of random numbers between two values.

Excel formula: Count birthdays by year

The size or the array is specified byrowsandcolumnsarguments.

The generated values can be either decimals or whole numbers.

SEQUENCE Function

The Excel SEQUENCE function generates a list of sequential numbers in an array.

Excel formula: Biggest gainers and losers

The array can be one dimensional, or two-dimensional, determined byrowsandcolumnsarguments.

Excel formula: Extract common values from text strings

Excel formula: Extract common values from two lists

Excel formula: Sort by one column

Excel formula: Get information about max value

Excel formula: All dates in chronological order

Excel formula: UNIQUE with non-adjacent columns

Excel formula: Maximum change

Excel formula: Multiple matches into separate rows

Excel formula: Filter by column, sort by row

Excel formula: Filter and sort without errors

Excel formula: Sort comma separated values

Excel formula: Sort values by columns

Excel formula: FILTER on top n values

Article image

Article image

Article image

Article image

Article image

Article image

Article image

Excel UNIQUE function

Excel FILTER function

Excel SORT function

Excel SORTBY function

Excel RANDARRAY function

Excel SEQUENCE function