Sort Last Names in Google Sheets: A Step-by-Step Guide

Sorting data in Google Sheets can significantly enhance your productivity and analysis. One common sorting task is organizing a list of names by last name. Goog...

Sorting data in Google Sheets can significantly enhance your productivity and analysis. One common sorting task is organizing a list of names by last name. Google Sheets provides a straightforward way to achieve this, and in this guide, we'll walk you through the process step-by-step.

How to sort full names by last name in Google sheets?
How to sort full names by last name in Google sheets?

Before we dive into the sorting process, ensure that your data is structured correctly. The names should be in a single column, with the last name followed by the first name (e.g., "Smith, John"). This format will make the sorting process more accurate.

Google Classroom: Sorting Student Scores by Student Last Name - Teacher Tech with Alice Keeler
Google Classroom: Sorting Student Scores by Student Last Name - Teacher Tech with Alice Keeler

Sorting by Last Name in Google Sheets

Google Sheets offers a built-in sorting feature that allows you to sort data based on one or more columns. To sort by last name, we'll use this feature and customize the sort order to meet our needs.

Split Names Add On for Google Sheets
Split Names Add On for Google Sheets

First, let's ensure that the data range is selected. Click on the first cell in your data range, then drag the cursor to the last cell to highlight all the data you want to sort. Once selected, proceed to the next step.

Accessing the Sort Feature

a screenshot of a cell phone with the text sample roster on it and an arrow pointing
a screenshot of a cell phone with the text sample roster on it and an arrow pointing

With your data range selected, look at the top menu in Google Sheets. You'll see a 'Data' tab. Click on it, then hover over 'Sort A→Z' or 'Sort Z→A' in the dropdown menu. These options will sort your data alphabetically, but we want to sort by last name, so we'll use a different method.

Instead of using the quick sort options, click on 'Sort' at the bottom of the dropdown menu. This will open the 'Sort' dialog box, where you can customize the sort order.

Customizing the Sort Order

Split First and Last Name in Spreadsheet
Split First and Last Name in Spreadsheet

In the 'Sort' dialog box, you'll see a 'Sort by' dropdown menu. By default, it's set to sort by the active cell. Since we want to sort by the last name column, click on the dropdown menu and select the column containing the last names.

Next, in the 'Sort by' dropdown menu, choose 'A→Z' to sort in ascending order (from A to Z). This will sort the last names alphabetically. If you want to sort in descending order (from Z to A), choose 'Z→A'.

Once you've set the sort order, click 'Sort' to apply the changes. Your data will now be sorted by last name, with the option to further customize the sort order if needed.

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

Sorting by Last Name and Then by First Name

In some cases, you might want to sort your data by last name first and then by first name within each last name group. Google Sheets allows you to do this by adding a second sort column.

Master Google Sheets Dynamic Named Ranges
Master Google Sheets Dynamic Named Ranges
Basic Formatting in Google Sheets
Basic Formatting in Google Sheets
Google Classroom: Sorting Student Scores by Student Last Name - Teacher Tech with Alice Keeler
Google Classroom: Sorting Student Scores by Student Last Name - Teacher Tech with Alice Keeler
How to use sort and filter your data in google sheets
How to use sort and filter your data in google sheets
Contact list template for Google Sheets with built in search
Contact list template for Google Sheets with built in search
How to Use Google Sheets in Dark Mode (on Mobile & Desktop)
How to Use Google Sheets in Dark Mode (on Mobile & Desktop)
Build Your Own To-Do List in Google Sheets | Easy Tutorial for Beginners
Build Your Own To-Do List in Google Sheets | Easy Tutorial for Beginners
How to Sort By Date in Google Sheets
How to Sort By Date in Google Sheets
Google Sheets Checklists
Google Sheets Checklists
How to add a Calendar into a cell in Google Sheets #googlesheets #tutorial #spreadsheet
How to add a Calendar into a cell in Google Sheets #googlesheets #tutorial #spreadsheet
How to Sort Columns Like a Pro in Google Sheets
How to Sort Columns Like a Pro in Google Sheets
How to Sort by Date in Google Sheets
How to Sort by Date in Google Sheets
How to Change Your Google Sheets Theme Color
How to Change Your Google Sheets Theme Color
How to Sort by Date in Google Sheets - Make Tech Easier
How to Sort by Date in Google Sheets - Make Tech Easier
How to Separate First Names and Last Names Into Separate Fields in a Microsoft Excel List
How to Separate First Names and Last Names Into Separate Fields in a Microsoft Excel List
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
How to Randomize a List in Google Sheets
How to Randomize a List in Google Sheets
How to use VLOOKUP in Google Sheets: A complete guide
How to use VLOOKUP in Google Sheets: A complete guide
Excel | Splitting Names
Excel | Splitting Names
How to use an Excel spreadsheet in Google Sheets (access from any device, anytime) or Numbers for Ma
How to use an Excel spreadsheet in Google Sheets (access from any device, anytime) or Numbers for Ma

To add a second sort column, follow these steps:

Adding a Second Sort Column

In the 'Sort' dialog box, click on the 'Add another sort column' link at the bottom. This will add a new section where you can specify the second sort column.

In the new section, select the column containing the first names in the 'Sort by' dropdown menu. Choose the sort order (A→Z or Z→A) based on your preferences. Once you've set the second sort column, click 'Sort' to apply the changes.

Your data will now be sorted first by last name and then by first name within each last name group. This can be particularly useful when you have multiple people with the same last name, and you want to organize them by their first names as well.

Sorting and Filtering: A Powerful Combination

Sorting your data by last name is just the beginning. Google Sheets also offers filtering capabilities that allow you to filter your data based on specific criteria. By combining sorting and filtering, you can create powerful data analysis tools tailored to your needs.

To learn more about filtering in Google Sheets, check out our guide on "How to Filter Data in Google Sheets".

Sorting by last name in Google Sheets is a simple yet powerful feature that can significantly improve your data organization and analysis. By following this guide, you should now be able to sort your data by last name with ease. Happy sorting!