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.

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.

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:

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.

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.
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.

4. Click 'OK'. Excel will sort your data based on the second word in each entry, with the results displayed in Column A.
If you prefer not to alter your original data, you can sort it temporarily. Here's how:

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'.




















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.
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!