Sort Excel Data: Alphabetize by Second Word

Ever found yourself wishing to sort data in Excel based on the second word of each entry? While Excel's built-in sorting options primarily focus on the first wo...

Ever found yourself wishing to sort data in Excel based on the second word of each entry? While Excel's built-in sorting options primarily focus on the first word or column, it's possible to sort data alphabetically by the second word with a bit of creativity. Let's explore how to achieve this using Excel's TEXTSPLIT and SORT functions.

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

Before we dive in, ensure your data is structured with each entry in a single cell, separated by a space. For instance, "Apple Banana" should be a single cell, not "Apple" in one cell and "Banana" in another. This approach simplifies the process and keeps the data organized.

Add letters to a series of numbers
Add letters to a series of numbers

Preparing Your Data

Before sorting, we need to separate the second word from each entry. Excel's TEXTSPLIT function, introduced in version 365, makes this task a breeze. Here's how to use it:

The ABCs of Excel | Excel Cheatsheets
The ABCs of Excel | Excel Cheatsheets

1. In a new column (let's say Column B), enter the formula: `=TEXTSPLIT(A2," ")[2]`. This formula splits the text in cell A2 by spaces and returns the second item.

Applying the TEXTSPLIT Formula

the top 30 excel formulas are shown in purple and yellow, along with an image of
the top 30 excel formulas are shown in purple and yellow, along with an image of

2. Drag this formula down to copy it for the rest of your data in Column B. Now, Column B should display the second word from each entry in Column A.

Sorting the Data

3. Select any cell in your data range (including both Column A and Column B). Go to the 'Home' tab, click 'Sort & Filter', and then 'Sort by Column B'. Choose 'Sort A to Z' or 'Sort Z to A' depending on your preference.

ms excel formula
ms excel formula

4. Click 'OK'. Excel will sort your data based on the second word in each entry, with the results displayed in Column A.

Sorting Without Changing Original Data

If you prefer not to alter your original data, you can sort it temporarily. Here's how:

the top excel functions list for each type of text, including numbers and words that appear to
the top excel functions list for each type of text, including numbers and words that appear to

1. Select your data range. Go to the 'Data' tab, click 'Sort', and then 'Sort by Column B'. Choose 'Sort A to Z' or 'Sort Z to A'.

2. Under 'Options', check 'Expand the selection' and 'Sort left to right'. Click 'OK'.

the excel formats chart for each class
the excel formats chart for each class
Excel Cheat Codes for Everyday Business Invoicing | Boost Productivity Now
Excel Cheat Codes for Everyday Business Invoicing | Boost Productivity Now
the excel functions quick reference chart is shown in green and white, with numbers on each side
the excel functions quick reference chart is shown in green and white, with numbers on each side
Most Useful keys in excel
Most Useful keys in excel
the excel shortcuts list is shown with green and black numbers on it, which are
the excel shortcuts list is shown with green and black numbers on it, which are
a computer screen with some text on it and two emoticions in the bottom left corner
a computer screen with some text on it and two emoticions in the bottom left corner
How to Alphabetize in Excel - The Complete Guide
How to Alphabetize in Excel - The Complete Guide
50+ Essential Excel Keyboard Shortcuts | Ultimate Cheat Sheet for Beginners
50+ Essential Excel Keyboard Shortcuts | Ultimate Cheat Sheet for Beginners
two different types of words that are used to describe the same thing in each language
two different types of words that are used to describe the same thing in each language
How to Capitalize First Letter in Excel | capitalize first letter in excel | Excel Tutorials | excel
How to Capitalize First Letter in Excel | capitalize first letter in excel | Excel Tutorials | excel
Your Excel Dictionary (@exceldictionary) on Threads
Your Excel Dictionary (@exceldictionary) on Threads
the words convert numbers to words in excel on a piece of paper that says convert numbers to words in excel
the words convert numbers to words in excel on a piece of paper that says convert numbers to words in excel
Use the & in Excel
Use the & in Excel
an excel chart with arrows pointing to the names and numbers in each column, which are labeled
an excel chart with arrows pointing to the names and numbers in each column, which are labeled
7+ Alphabetical Order Worksheet Kindergarten
7+ Alphabetical Order Worksheet Kindergarten
How to Make Alphabetical List in Excel (3 Ways) - ExcelDemy
How to Make Alphabetical List in Excel (3 Ways) - ExcelDemy
the excel shortcuts list is shown in red and green, with numbers on each side
the excel shortcuts list is shown in red and green, with numbers on each side
Excel Keyboard Shortcuts Every Office User Should Know
Excel Keyboard Shortcuts Every Office User Should Know
Handling Names Excel
Handling Names Excel
the worksheet for an alphabet order is shown in black and white, with pencils on it
the worksheet for an alphabet order is shown in black and white, with pencils on it

3. Your data will be sorted temporarily based on the second word. To remove the sort, simply click 'Remove Sort' in the 'Sort & Filter' group on the 'Home' tab.

Sorting with Multiple Words

If your entries have more than two words, you can adjust the TEXTSPLIT formula to return the desired word. For instance, to sort by the third word, change the formula to `=TEXTSPLIT(A2," ")[3]`.

And there you have it! You've successfully sorted your Excel data alphabetically by the second word. This technique opens up a world of possibilities for organizing and analyzing your data based on specific words or phrases. Happy sorting!