Sort Last Names in Excel: Step-by-Step Guide

Sorting data in Excel can be a breeze once you understand the tools at your disposal. Today, we're going to tackle a common task: sorting data alphabetically by...

Sorting data in Excel can be a breeze once you understand the tools at your disposal. Today, we're going to tackle a common task: sorting data alphabetically by last name when the full name is in the same cell.

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

Excel provides a straightforward way to accomplish this, using a combination of text manipulation and sorting functions. Let's dive into the step-by-step process.

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

Preparing Your Data

Before we start, ensure your data is in the correct format. Let's assume you have a column (Column A) with full names in the format "First Last".

How to Sort by Name in Excel (3 Examples) - ExcelDemy
How to Sort by Name in Excel (3 Examples) - ExcelDemy

If your data is in a different format, you might need to clean it first. For instance, if last names are preceded by a comma (e.g., "Last, First"), you can use the 'Find and Replace' function to change them to the "First Last" format.

Using the Flash Fill Feature

Extract Last Name using TEXTAFTER function in Excel
Extract Last Name using TEXTAFTER function in Excel

Excel's Flash Fill feature can help separate the first and last names. Here's how to use it:

1. In a new column (let's say Column B), type the first few last names manually, pressing Enter after each one. Excel should automatically recognize the pattern and fill in the rest.

Sorting the Data

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

Now that you have the last names separated, you can sort the data alphabetically. Here's how:

1. Select the column with last names (Column B).

2. Go to the 'Home' tab, click on 'Sort & Filter', and then 'Sort A to Z' (or 'Sort Z to A' for reverse order).

Merge Two Columns in Excel with First Name and Last Name - ExcelDemy
Merge Two Columns in Excel with First Name and Last Name - ExcelDemy

Sorting Without Separating Names

If you prefer not to separate the names, you can still sort by last name using a formula. This method is useful when you want to keep the original format intact.

Splitting a List of Names in a Google Spreadsheet - Teacher Tech with Alice Keeler
Splitting a List of Names in a Google Spreadsheet - Teacher Tech with Alice Keeler
989K views · 11K reactions | 🏃‍♂️🔣💡 Excel's Flash Fill feature can quickly separate First Name, Middle Name, and Last Name from a full name, or even First Name, Initial, and Last Name, saving you time a | Excel Formulas Unleashed
989K views · 11K reactions | 🏃‍♂️🔣💡 Excel's Flash Fill feature can quickly separate First Name, Middle Name, and Last Name from a full name, or even First Name, Initial, and Last Name, saving you time a | Excel Formulas Unleashed
Split First & Last Name Using Power Query | MyExcelOnline
Split First & Last Name Using Power Query | MyExcelOnline
Quickly Name Selected Cells in Excel
Quickly Name Selected Cells in Excel
Sortby Function in Excel
Sortby Function in Excel
Separate first and last names in an Excel spreadsheet or Google Sheets
Separate first and last names in an Excel spreadsheet or Google Sheets
How to Separate First and Last Names in Excel
How to Separate First and Last Names in Excel
Excel
Excel
How to Make Alphabetical List in Excel (3 Ways) - ExcelDemy
How to Make Alphabetical List in Excel (3 Ways) - ExcelDemy
How to Combine Data From Different Cells in Excel
How to Combine Data From Different Cells in Excel
Add letters to a series of numbers
Add letters to a series of numbers
#Excel #Tips: How to do Custom Sort in Excel
#Excel #Tips: How to do Custom Sort in Excel
How to Alphabetize in Excel - The Complete Guide
How to Alphabetize in Excel - The Complete Guide
a green and black background with the words split full name to first & last name
a green and black background with the words split full name to first & last name
81K views · 952 reactions | Wondering how to change all uppercase to lowercase in Excel? This quick guide shows the easiest way to convert capital letters into lowercase using Excel formulas—no VBA needed! Ho | Excel Formula Hub
81K views · 952 reactions | Wondering how to change all uppercase to lowercase in Excel? This quick guide shows the easiest way to convert capital letters into lowercase using Excel formulas—no VBA needed! Ho | Excel Formula Hub
How to alphabetize in Excel: sort alphabetically columns and rows
How to alphabetize in Excel: sort alphabetically columns and rows
How to Add Multiple Cells in Excel (7 Easy Ways) - ExcelDemy
How to Add Multiple Cells in Excel (7 Easy Ways) - ExcelDemy
Sort data by color in Excel
Sort data by color in Excel
How to Sort Data in Excel Without Mixing Up Rows
How to Sort Data in Excel Without Mixing Up Rows
How to Extract Last Names from Full Names in Excel Documents
How to Extract Last Names from Full Names in Excel Documents

Here's how to do it:

Using the RIGHT Function

The RIGHT function extracts characters from the right side of a text string. You can use it to extract the last name and sort the data alphabetically. Here's how:

1. In a new column (let's say Column C), enter the formula `=RIGHT(A2, SEARCH(" ", REVERSE(A2))-1)`. This formula extracts the last name from the full name in Column A.

2. Press Enter. Excel will display the last name in Column C.

Sorting the Data

Now, you can sort the data in Column C alphabetically, just like in the previous example. Here's how:

1. Select Column C.

2. Go to the 'Home' tab, click on 'Sort & Filter', and then 'Sort A to Z' (or 'Sort Z to A' for reverse order).

And there you have it! You've successfully sorted your data alphabetically by last name, keeping the original format intact. Happy sorting!