Sorting data alphabetically is a common task in Excel, especially when dealing with large datasets. One frequent requirement is sorting by last name, which can ...
Sorting data alphabetically is a common task in Excel, especially when dealing with large datasets. One frequent requirement is sorting by last name, which can be achieved with a few simple steps. Let's dive into the process of sorting alphabetically in Excel by last name.

Before we begin, ensure that your data is structured with last names in a separate column. If not, you might need to split the full name into first and last name columns. For this guide, let's assume you have a column 'A' with full names, and you want to sort them by last name.

Excel provides a built-in feature to sort data alphabetically. You can use this feature to sort your data by last name. Here's how:

1. Select the range of cells containing the full names you want to sort. For example, if your data starts from A1, select A1:A100 (assuming you have 100 names).
![[EP 6] Excel Tips Separate First and Last name](https://i.pinimg.com/originals/87/eb/6d/87eb6d654567dd470adbeebc15ff6f64.png)
To sort the names in ascending order (from A to Z), follow these steps:
2. Click on the 'Data' tab in the Excel ribbon.
3. In the 'Sort & Filter' group, click on 'Sort A to Z' or 'Sort & Filter' (depending on your Excel version).

4. In the 'Sort' dialog box, ensure 'Sort by' is set to the column containing the last names. If your data is in column A, it should be selected by default.
5. Click 'OK'. Your data will now be sorted in ascending order by last name.

To sort the names in descending order (from Z to A), follow these steps:
2. Click on the 'Data' tab in the Excel ribbon.




















3. In the 'Sort & Filter' group, click on 'Sort Z to A' or 'Sort & Filter' (depending on your Excel version).
4. In the 'Sort' dialog box, ensure 'Sort by' is set to the column containing the last names. If your data is in column A, it should be selected by default.
5. Click 'OK'. Your data will now be sorted in descending order by last name.
Sometimes, your last names might be in a different column or format. You can still sort them alphabetically using the following method:
1. Assume your full names are in column A (A2:A100) and you want to sort them by the last name in column B (B2:B100).
To extract the last names, you can use the 'Text to Columns' feature in Excel. Here's how:
2. Select the range containing the full names (A2:A100).
3. Click on the 'Data' tab in the Excel ribbon.
4. In the 'Data Tools' group, click on 'Text to Columns'.
5. In the 'Convert Text to Columns' dialog box, select 'Delimited' and click 'Next'.
6. Select 'Space' as the delimiter and click 'Finish'. This will split the full names into first and last names in columns A and B.
Now that you have the last names in a separate column, you can sort them alphabetically using the steps mentioned earlier.
7. Select the range containing the last names (B2:B100).
8. Click on the 'Data' tab in the Excel ribbon.
9. In the 'Sort & Filter' group, click on 'Sort A to Z' or 'Sort & Filter' (depending on your Excel version).
10. In the 'Sort' dialog box, ensure 'Sort by' is set to the column containing the last names (B).
11. Click 'OK'. Your data will now be sorted in ascending order by last name.
And there you have it! You've successfully sorted your data alphabetically by last name in Excel. This skill will prove invaluable when working with large datasets, ensuring your data is always organized and easy to navigate.