Contents
In Excel, you can sort data by one or more columns. Sorting can be done in ascending or descending order.
One column
To sort data by one column, do the following:
- Select any cell in the column you want to sort by.
- To sort in ascending order, open the tab Data (Data) and click on the icons AND I (THE).The final result:
Note: To sort in descending order, click the icon ЯА (FOR).
Multiple columns
To sort data by multiple columns, follow these steps:
- On the Advanced tab Data (Data) click Sorting (Sort).A dialog box will open Sorting (Sort).
- In the dropdown list Sort by (Sort by) select the column to sort by (in our example it is Last Name).
- Нажмите кнопку Add level (Add Level).
- In the dropdown list Then by (Then by) select the next column to sort (we choose Sales).
- Press OK.Result: Records are sorted by column first Last Name, then by column Sales.