When you’re analyzing complex data sets in Google Sheets, you can take advantage of its built-in sorting feature to organize the data. You can sort by individual columns or, for more complex data, you can sort by multiple columns.
To do this, you’ll need to open your Google Sheets spreadsheet and select the data set you wish 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 on your keyboard.
Once your data is selected, click Data > Sort Range from the Google Sheets menu.
In the “Sort Range” option box, you can select how you wish to sort your data.
You can select the column to sort by, as well as whether to sort in ascending or descending order. Click the “Data Has Header Row” to be able to select columns by the header cell.
By default, Google Sheets will only offer one column to sort by. To add multiple columns to your sort options, select the “Add Another Sort Column” button.
When you sort by multiple columns in Google Sheets, the sort will take place in order from top to bottom. For instance, an example spreadsheet has product sales data with product names, sale dates, and prices shown.
If you wanted to sort this data by name and then by the amount sold, you’d want to select the product name column in column A (named “Product”) first and the amount sold in column C (named “Price”) second.
You could sort this in ascending order, starting with product names near the start of the alphabet at the top, then with prices sorted by the smallest amount. Select “A-Z” to sort this way or “Z-A” to sort in descending order instead.
You can mix and match these options, too. For this example, you could sort in ascending order for product names and descending order for sales amounts.
Once your sorting options are set, select the “Sort” button to sort your data. The data in your spreadsheet will be rearranged following the rules set in the “Sort Range” options box.
For this example, the data above has been sorted with product names and prices both in ascending order. This is shown clearly with the monitor and mouse products.
Priced at $100, the monitor would come second if the sort was only performed on the “Price” column (column C). As the sort was performed on the “Product” column (column A) first, however, the sold monitor was placed ahead of the mouse.
You can undo any of these sorts by performing another sort on your data set, by pressing the “Undo” button in the menu bar, or by pressing Ctrl+Z on your keyboard.
- › How to Alphabetize Data in Microsoft Excel
- › How to Make a Table in Google Sheets Using a Table Chart
- › How to Sort in Google Sheets
- › Android Phones Are Now More Secure, Thanks to Rust
- › The Google Nest Mini Is Back Down to Just $18 Today
- › How to Block Subreddits on Reddit
- › How Does Your Snap Score Work (and How to Increase It)
- › How to Zoom In or Out on a Mac