Sort Excel by Last Name: Step-by-Step Guide

Sorting data in Excel can be a breeze once you know the right steps. Today, we're going to focus on how to sort a column in Excel by last name, a common task wh...

Sorting data in Excel can be a breeze once you know the right steps. Today, we're going to focus on how to sort a column in Excel by last name, a common task when dealing with large datasets. Let's dive right in.

How to split full name to first and last name in Excel?
How to split full name to first and last name in Excel?

Before we start, ensure your Excel version is up-to-date. The steps below work for Excel 2016, 2019, and the latest Office 365 version. If you're using an older version, some steps might differ slightly.

Excel Joining Two Text Columns First Name Last Name with Concatenation
Excel Joining Two Text Columns First Name Last Name with Concatenation

Sorting Data in Excel

Sorting data in Excel is a powerful feature that allows you to arrange data in ascending or descending order. It's particularly useful when you want to organize a list of names, dates, or numerical data.

How to Sort by Last Name in Excel - 5 Methods - ExcelDemy
How to Sort by Last Name in Excel - 5 Methods - ExcelDemy

To sort a column in Excel, you'll first need to select the data you want to sort. This could be a single column or a range of columns and rows. Once selected, you can access the sorting options.

Sorting by a Single Column

Learn Five ways to sort by the last name in Excel
Learn Five ways to sort by the last name in Excel

When you want to sort by a single column, like the last name column, the process is straightforward. Here's how:

1. Select the column you want to sort. If your data starts from the first row, click on the column letter (e.g., A, B, C) at the top. If your data starts from a different row, click and drag to select the entire column.

2. Click on the 'Sort & Filter' button in the 'Home' tab. This will open the 'Sort' dialog box.

How to Sort Names Alphabetically in Excel
How to Sort Names Alphabetically in Excel

3. In the 'Sort by' dropdown, choose the column you want to sort by. In this case, it's the last name column.

4. In the 'Sort on' dropdown, choose 'Cell Values'. This tells Excel to sort based on the actual data in the cells, not the formatting.

5. Choose 'Descending' or 'Ascending' depending on your preference. 'Descending' will sort from Z to A, while 'Ascending' will sort from A to Z.

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

6. Click 'OK'. Excel will sort the data in the selected column based on your chosen order.

Sorting by Multiple Columns

How to Sort by Name in Excel (3 Examples) - ExcelDemy
How to Sort by Name in Excel (3 Examples) - ExcelDemy
Grouping Rows/Columns in Excel📚
Grouping Rows/Columns in Excel📚
Merge Two Columns in Excel with First Name and Last Name - ExcelDemy
Merge Two Columns in Excel with First Name and Last Name - ExcelDemy
How to Use Columns Formula in Excel
How to Use Columns Formula in Excel
Excel Sort by Column or Row One or Multiple Sort by Cell Color Font Color Customize Sort
Excel Sort by Column or Row One or Multiple Sort by Cell Color Font Color Customize Sort
Resize Rows and Columns
Resize Rows and Columns
Sort in Excel
Sort in Excel
How to merge multiple columns into a single column using Microsoft Excel
How to merge multiple columns into a single column using Microsoft Excel
How to Add a Column in Excel Without Moving Data the Wrong Way
How to Add a Column in Excel Without Moving Data the Wrong Way
an excel spreadsheet showing the number and type of columns in each column,
an excel spreadsheet showing the number and type of columns in each column,
How To Split First and Last Name in Excel Sheet - How to Split Cells in Excel
How To Split First and Last Name in Excel Sheet - How to Split Cells in Excel
How To Split Text Into Multiple Columns Using Text to Column In Excel
How To Split Text Into Multiple Columns Using Text to Column In Excel
How To Move Multiple Rows and Columns In Excel - The Easy Way!
How To Move Multiple Rows and Columns In Excel - The Easy Way!
How to Split Names into Three Columns in Excel (3 Methods) - ExcelDemy
How to Split Names into Three Columns in Excel (3 Methods) - ExcelDemy
How to Split Text Data of a Cell to Column in Excel - ExcelDataPro
How to Split Text Data of a Cell to Column in Excel - ExcelDataPro
Extract Last Name using TEXTAFTER function in Excel
Extract Last Name using TEXTAFTER function in Excel
How to Sort in Excel Rows or Columns Avoid Sort Problems
How to Sort in Excel Rows or Columns Avoid Sort Problems
How to Hide Columns in Excel Without Deleting Data
How to Hide Columns in Excel Without Deleting Data
How to Combine Two Columns in Microsoft Excel
How to Combine Two Columns in Microsoft Excel
How to Split Text to Columns in Excel with Multiple Delimiters using TEXTSPLIT in Excel Formula
How to Split Text to Columns in Excel with Multiple Delimiters using TEXTSPLIT in Excel Formula

Sometimes, you might want to sort by multiple columns. For instance, you might want to sort by last name first, then by first name. Here's how to do that:

1. Select the entire table or range you want to sort. This includes all the columns you want to sort by.

2. Click on the 'Sort & Filter' button in the 'Home' tab. This will open the 'Sort' dialog box.

3. In the 'Sort by' dropdown, choose the first column you want to sort by. In this case, it's the last name column.

4. In the 'Sort on' dropdown, choose 'Cell Values'.

5. Choose 'Descending' or 'Ascending' depending on your preference.

6. Click on the 'Add Level' button. This will add a new set of 'Sort by', 'Sort on', and 'Order' dropdowns.

7. In the new 'Sort by' dropdown, choose the second column you want to sort by. In this case, it's the first name column.

8. Repeat steps 4 to 6 for as many columns as you want to sort by.

9. Click 'OK'. Excel will sort the data in the selected columns based on your chosen order.

Sorting Names with Special Characters or Numbers

Sorting names with special characters or numbers can be a bit tricky. Excel treats numbers and special characters as text, so they might not sort as expected. Here's how to handle this:

1. Before sorting, check if your last name column contains any special characters or numbers. If it does, you might need to clean up your data.

2. If you have numbers in your last name column, consider removing them or adding a prefix (e.g., '001-') to ensure they sort correctly.

3. If your last name column contains special characters, consider removing them or replacing them with a standard character (e.g., replacing 'Mac' with 'Mc').

4. Once you've cleaned up your data, follow the steps above to sort your column.

Sorting a column in Excel by last name can save you a lot of time and effort when dealing with large datasets. Whether you're sorting by a single column or multiple columns, Excel's sorting feature has you covered. Happy sorting!