Sort Multiple Columns in Google Sheets

Sorting data in Google Sheets is a powerful feature that helps you organize and analyze information. While sorting by a single column is straightforward, you mi...

Sorting data in Google Sheets is a powerful feature that helps you organize and analyze information. While sorting by a single column is straightforward, you might find yourself needing to sort by multiple columns to gain deeper insights or to arrange your data in a more meaningful way. So, can you sort by multiple columns in Google Sheets? The answer is yes, and it's easier than you think.

How to Sort Columns Like a Pro in Google Sheets
How to Sort Columns Like a Pro in Google Sheets

Google Sheets allows you to sort data by up to 63 columns, which should be more than enough for most tasks. In this article, we'll guide you through the process of sorting by multiple columns, step by step.

How to Group Rows and Columns in Google Sheets
How to Group Rows and Columns in Google Sheets

Sorting by Multiple Columns in Google Sheets

Before we dive into the steps, let's understand why you might want to sort by multiple columns. For instance, you might want to sort a list of students by their last name and then by their first name. Or, you might want to sort a list of products by category and then by price.

The Ultimate Google Sheets Keyboard Shortcut Cheat Sheet for Beginners & Pros
The Ultimate Google Sheets Keyboard Shortcut Cheat Sheet for Beginners & Pros

Now, let's get started with the actual process.

Step 1: Select the Data

How to Sort by Multiple Columns in Google Sheets ✅ MUST-KNOW Tip for Teachers! | TUTORIAL
How to Sort by Multiple Columns in Google Sheets ✅ MUST-KNOW Tip for Teachers! | TUTORIAL

First, you need to select the data you want to sort. To do this, click and drag your mouse over the cells you want to include in the sort. If your data includes headers, make sure to include those in your selection.

You can also select non-adjacent cells by holding down the Ctrl key (or Command key on a Mac) while clicking.

Step 2: Access the Sort Options

How to Make Four Columns in Google Docs
How to Make Four Columns in Google Docs

Once your data is selected, click on the "Data" menu at the top of your screen. Then, hover over "Sort A" to Z" or "Sort Z" to A". A dropdown menu will appear, allowing you to choose the sort order.

For now, let's choose "Sort A" to Z".

Step 3: Add Sorting Levels

a laptop with google sheets on it and the words google sheets for teachers above it
a laptop with google sheets on it and the words google sheets for teachers above it

After you've chosen the initial sort order, a dialog box will appear. This is where you can add additional sorting levels. To do this, click on the "+ Add sort item" button.

In the "Sort by" dropdown, choose the column you want to sort by next. In our example, let's choose "First Name". Then, choose the sort order. We'll stick with "A" to "Z" for this example.

How to Insert Columns into Google Docs
How to Insert Columns into Google Docs
a computer screen with the words stop stretching out columns like this in red and green
a computer screen with the words stop stretching out columns like this in red and green
How to Change Your Google Sheets Theme Color
How to Change Your Google Sheets Theme Color
the google sheets has hidden gems you're not using on your webpages
the google sheets has hidden gems you're not using on your webpages
the 13 google sheets shortcuts list is shown in green and has white writing on it
the 13 google sheets shortcuts list is shown in green and has white writing on it
Google Sheets: Merge Data into One Column - Teacher Tech with Alice Keeler
Google Sheets: Merge Data into One Column - Teacher Tech with Alice Keeler
Quick tutorial: How to create dropdowns in Google Sheets (the easy way!)
Quick tutorial: How to create dropdowns in Google Sheets (the easy way!)
How to Make a Numbered List in Google Sheets
How to Make a Numbered List in Google Sheets
Travel Planner Google Sheets Template for Easy Trip Organization
Travel Planner Google Sheets Template for Easy Trip Organization
23 Best formulas for Google Sheets (+ Examples)
23 Best formulas for Google Sheets (+ Examples)
Google Sheets Checklists
Google Sheets Checklists
How to Calculate Running Total in Google Sheets
How to Calculate Running Total in Google Sheets
Grouping Rows/Columns in Excel📚
Grouping Rows/Columns in Excel📚
How Do I Find Duplicates in Two Columns in Google Sheets?
How Do I Find Duplicates in Two Columns in Google Sheets?
Google Sheets Formula Cheat Sheet
Google Sheets Formula Cheat Sheet
Contact list template for Google Sheets with built in search
Contact list template for Google Sheets with built in search
Monthly Calendar - Unlimited Years - Sunday & Monday Start - Tracker - to Do List - Google Sheets Template - Instant Download - Etsy
Monthly Calendar - Unlimited Years - Sunday & Monday Start - Tracker - to Do List - Google Sheets Template - Instant Download - Etsy
Push a Column to Each Sheet in Google Sheets - Teacher Tech with Alice Keeler
Push a Column to Each Sheet in Google Sheets - Teacher Tech with Alice Keeler
165K views · 992 reactions | Learn VLOOKUP in Excel 🔍 | Fetch Multiple Columns Easily #exceltips | excel_funclub | Facebook
165K views · 992 reactions | Learn VLOOKUP in Excel 🔍 | Fetch Multiple Columns Easily #exceltips | excel_funclub | Facebook
30+ Essential Google Sheets Functions
30+ Essential Google Sheets Functions

Step 4: Repeat for Additional Levels

If you need to sort by more columns, click on the "+ Add sort item" button again. Repeat the process of choosing the column and the sort order for each additional level.

Remember, you can sort by up to 63 columns, but keep in mind that sorting by too many columns can make your data difficult to read.

Sorting in Descending Order

So far, we've only sorted in ascending order ("A" to "Z"). But what if you want to sort in descending order ("Z" to "A")? It's easy to do.

When you're adding your sorting levels, simply choose "Z" to "A" instead of "A" to "Z".

Sorting by Date or Time

Sorting by date or time is a bit different. When you choose a date or time column, the sort order will automatically be set to "Oldest to Newest" or "Newest to Oldest".

If you want to sort by a specific date or time format, you might need to format your data first. You can do this by right-clicking on the column header and choosing "Format" > "More formats" > "Custom date and time".

Sorting by Custom Lists

Sometimes, you might want to sort by a custom list. For example, you might want to sort a list of cities by population, but the population data isn't in your sheet. In this case, you can create a custom list.

To do this, click on "Data" > "Create a custom sort list". In the dialog box that appears, enter your custom list. Then, when you're adding your sorting levels, choose "Custom sort list" from the "Sort by" dropdown.

And there you have it! You now know how to sort by multiple columns in Google Sheets. Whether you're sorting by name, date, or custom lists, Google Sheets has you covered. So, go ahead and give it a try. Your data will thank you!

Remember, sorting is just one of many tools Google Sheets offers for data organization and analysis. Don't be afraid to explore and experiment with other features to see what you can create.