How to Sort in Google Sheets and Keep Rows Together

In this guide, you’ll learn how to sort your data in Google Sheets while keeping the rows together. I will mention two simple methods to accomplish this.

The first method should be used if you want to sort the data in a column just once. If you want to regularly sort any data in a column, I suggest you follow the second method.

For this tutorial, I will use the following sample data as an example, sorting the “Sales” column from the table:

Order IDProduct NameCustomer NameOrder DateSales
1001Running ShoesJohn Smith2024-03-15$79.99
1004Protein PowderDavid Kim2024-03-22$49.99
1006DumbbellsEmily Garcia2024-03-19$39.99
1002Yoga MatJane Doe2024-03-20$24.95
1005Baseball CapMichael Brown2024-03-18$19.99
1003Water BottleSarah Lee2024-03-12$14.50

Sorting Once: Using the Sort Function

To sort in Google Sheets and keep rows together using the sort function:

1. Select the data range.

How to Sort in Google Sheets and Keep Rows Together Method-1 Step-1

The first step is to select and highlight all the data that you want to sort.

In my case, I selected the entire table.

2. Navigate to Data > Sort range > Advanced range sorting options.

How to Sort in Google Sheets and Keep Rows Together Method-1 Step-2

After selecting the data, click on the “Data” option from the top menu.

A menu with a list of options will appear.

Hover over the “Sort range” option to view the secondary menu.

Choose the “Advanced range sorting option” and proceed to the next step.

3. Check the “Data has header row” checkbox.

How to Sort in Google Sheets and Keep Rows Together Method-1 Step-3

You will see a pop-up window.

Check the “Data has header row” box if your selected data range includes a header row.

If you don’t have a header row, you can skip this step.

4. Select the column you want to sort.

How to Sort in Google Sheets and Keep Rows Together Method-1 Step-4

In the “Sort by” drop-down, the first column will be automatically selected.

Click on this drop-down menu and choose the column from the drop-down that you want to sort.

In my case, the “Order ID”, which is the first column, was selected by default.

Since I wanted to sort the “Sales” column, I clicked on the “Sort by” drop-down menu and chose the “Sales” column from the list.

5. Choose a sorting criteria and click “Sort”

How to Sort in Google Sheets and Keep Rows Together Method-1 Step-5

After selecting the column, it is finally time to choose a sorting criterion.

You can either choose to sort the data in an ascending manner (A to Z) or choose the descending option (Z to A).

Now, click the “Sort” button.

Following these five steps every time can be a tedious task, especially if you are working with thousands of rows and columns and you often want to sort columns.

That’s why I have found a way to quickly sort any column from the table in ascending or descending order.

I have explained the method step-by-step in the section below.

Sorting Regularly: Using Filters

To sort in Google Sheets and keep rows together using filters:

1. Select the data range.

How to Sort in Google Sheets and Keep Rows Together Method-2 Step-1

To begin, highlight all the data with the mouse to select it. Now, proceed to the next step.

2. Navigate to Data > Create a filter.

How to Sort in Google Sheets and Keep Rows Together Method-2 Step-2

After you select the data, click on the “Data” option from the top menu, then select the “Create a Filter” option from the list of options.

3. Click anywhere on the screen to deselect the data range.

How to Sort in Google Sheets and Keep Rows Together Method-2 Step-3

To deselect the data range, simply click anywhere on the sheet. This is an optional step.

4. Click on the filter icon (a downward-facing triangle).

How to Sort in Google Sheets and Keep Rows Together Method-2 Step-4

You will now see a filter icon next to each column header. Simply click on it to view the options.

5. Choose a sorting criteria.

How to Sort in Google Sheets and Keep Rows Together Method-2 Step-5

After you click on the filter icon, you will see a menu with options like Sort A to Z, Sort Z to A, and Sort by color.

Choose your desired sorting criteria for the column.

To remove the filter icons, select the entire data range, go to the Data menu, and select “Remove filter”.

How to Sort in Google Sheets and Keep Rows Together Method-2 Step-6
Click to rate this post!
[Total: 0 Average: 0]