Formulas > =SORT()

How To Use SORT() Function in Google Sheets

Description

Sorts the rows of a given array or range by the values in one or more columns.

The SORT formula can be used to sort data in a range of cells in ascending or descending order. It can also be used to sort data by multiple columns.

The SORT formula is commonly mistyped as SORTED, or SORTING, or ASORT, or SORTER.

Some common ways the SORT formula is used inappropriately include sorting data that is not in a range of cells, sorting data that is not in the same format. A common error might be to try to sort dates that are not dates at all. Labeling dates of the week as "Monday" or "Tuesday" does not mean that a sort function will correctly know that the days of the weeks should be sorted by their order of days. It will try to sort them alphabetically.

Common pitfalls when using the SORT formula include forgetting to specify the range of cells to be sorted, forgetting to specify the order of sorting, and forgetting to specify the column to be sorted.

Common mistakes when using the SORT formula include using the wrong syntax, using the wrong arguments, and using the wrong order of sorting. You might want to sort a whole column and put the column name in quotes. That is a simple mistake to make as some formulas such as INDIRECT do need the arguments to be in quotes to work as intended.

How To Actually Use SORT() in Sheets

SORT(range, sort_column, is_ascending, [sort_column2], [is_ascending2])

11Better Sheets Tutorials

Alejandro Asks: How do I Sum up Study hours from a Calendar Format?

A member, Alejandro, asks about taking their custom calendar inputs and figuring out study totals for a week. They created a beautiful input and just need to the calculations. I show how to use the data to do the calculations. If you've never used the FLATTEN() formula, this is a good example! And we use double UNIQUE().
FLATTEN() FILTER() SUM() UNIQUE() SORT()

Learn more about the SORT() formula:

How to use the SORT function in Google Sheets (Syntax & 6 Examples)

The Google Sheets SORT function allows you to sort data and return the rows in a range either in ascending or descending order. The SORT function also allows you to add multiple criteria across columns, in a similar way to the “Sort Range” functionality in the Google Sheets menu bar. The difference is that with the SORT function you can generate a new set of data while the original data remains intact. You can use it to sort data alphabetically, numerically, or even by date, and you can sort both vertically and horizontally.

Generate a SORT() formula for your needs with AI

Google Sheets Formula Generator

Whatever you need to do in sheets, you can generate a formula. Use the Better Sheets Formula generator to create a formula for any need. Completely free for members.

Asa

Looking for more help inside sheets get the free Add-on: Asa. Ask Sheets Anything. Go ahead, ask it any problem you migth have. Bring your own APIKEY and generate formulas inside of Google Sheets.