HomeHow ToHow to sort by multiple columns in Google Sheets

How to sort by multiple columns in Google Sheets

When you're analyzing complex data sets in Google Sheets, you can take advantage of the built-in sorting feature to organize your data. You can sort by individual columns, or, for more complex data, you can sort by multiple columns.

How to sort by multiple columns in Google Sheets

To do this, you will need to open your Google Sheets spreadsheet and select the data set you want to sort. You can do this manually by selecting the cells using your mouse or by selecting one of the cells in your data set and pressing Ctrl + A.

Once your data is selected, click Data > Sort Range from the Google Sheets menu.

How to sort by multiple columns in Google Sheets

In the “Sort Range” selection box, you can choose how you want to sort your data.

You can select the column to sort by, as well as whether to sort in ascending or descending order. Click on “Data Has Header Row” to be able to select columns from the “header cell”.

Google Sheets

By default, Google Sheets will only offer one column for sorting. To add multiple columns to your sorting options, select the “Add Another Sort Column” button.

How to sort by multiple columns in Google Sheets

When you sort by multiple columns in Google Sheets, the sorting will be done from top to bottom. For example, an example spreadsheet has product sales data with product names, sale dates, and prices.

If you wanted to sort this data by name and then by the amount sold, you would first select the product name column in column A (named “Product”) and second the amount sold in column C (named “Price”).

How to sort by multiple columns in Google Sheets

You can sort it in ascending order, starting with product names near the beginning of the alphabet at the top, and then with prices sorted by the smallest amount. Select “AZ” to sort this way, or “ZA” to sort in descending order.

You can also mix and match these options. For this example, you can sort product names in ascending order and sales amounts in descending order.

Google Sheets

Once the sorting options are set, select the “Sort” button to sort your data. The data in your spreadsheet will be rearranged according to the rules defined in the “Sort Range” options box.

Google Sheets

You can undo any of these sorts by running another sort on your dataset, by clicking the “Undo” button in the menu bar, or by pressing Ctrl + Z on your keyboard.

📧
Subscribe to the SecNews Newsletter

The most important Security & Technology news in your Inbox.

Teo Ehc
Teo Ehchttps://www.secnews.gr
Be the limited edition.

SEARCH

FOLLOW US

📧
Newsletter SecNews
The most important Security & Technology news in your inbox.

LIVE NEWS