Google Sheets – Sorted!

Here we’re going to look at how to sort your data in numerical order and alphabetical order.

Here we have some performance figures and I want to sort them by performance, starting with the highest and ending with the lowest ones.

1) Select the data. In this first example, let’s ignore the headers in row 1.

Sheets12 - 1

2) Go to the Data menu and click “Sort range…”.

Sheets12 - 2

3) I want to sort by the figures in column D, so I click on “Column A” to change it.

Sheets12 - 3

4) Then I select “Column D”.

Sheets12 - 4

5) I also want to sort from highest to the lowest, so I need to select “Z->A”.

Sheets12 - 5

6) Click the blue “Sort” button.

As you can see, the data is now sorted by performance.

Sheets12 - 6

Note, the “Sort range” menu can also be accessed by selecting the range then right clicking.

Sheets12 - 17


What happens if I want to sort it by class and within each class, I want the students’ performance to be sorted from highest to lowest? That’s easy, we just need to create 2 sort rules.

Follow steps 1-2 above, so we have the first sort criteria (column A, sorted AtoZ).

1) Then click “+ Add another sort column”.

Sheets12 - 7

2) Click on “Column B” to change it to column D.

Sheets12 - 8 Sheets12 - 9

3) Click “Z->A” to change it to highest to lowest. Then click “Sort”.

Sheets12 - 10

As you can see the data is now sorted by class (A to D) and within each class by performance (highest to lowest).

Sheets12 - 11


The above didn’t include the column headers, but this time let’s include them, to see how that affects the sort list.

1) Select all the data including the column headers.

Sheets12 - 12

2) Go to the Data menu and Sort Range as above. Then click “Data has header row”. You will see the sort by drop-down menu has changed from “Column A” to “Class”.

Sheets12 - 13

3) Click on “Class” and you will see the column headers, you can sort by. So if we wanted to sort by performance as before, we would click on “Performance”.

Sheets12 - 14


Finally, you may have noticed other sort options in the Data menu.

Sheets12 - 2

The top two “Sort sheet by column A…” will select the entire sheet and then sort whatever is in column A. This is useful if you have a sheet full of data, and saves you having to select it beforehand.

The next two “Sort range by column A…” will sort just the range you have selected and will sort column A. This is useful if the column you want to sort is the one in which your cursor is.

For example, below the same range has been selected, but the one of the first one was selected from left to right and so the cursor remains in cell A2, and so the sort range would be in column A. The second one was selected from right to left and so the cursor remains in cell D15, and so the sort range would be in column D.

Sheets12 - 15  Sheets12 - 16


eBooks available on Drive, Forms, Sheets, Docs, Slides, and Sheet Functions:

Baz Roberts (Flipboard / Twitter / Google+)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s