Sort Excel by Last Name: Quick Guide

Sorting data in Excel can significantly enhance your productivity and analysis capabilities. Today, we're going to explore a common task: sorting selected cells...

Sorting data in Excel can significantly enhance your productivity and analysis capabilities. Today, we're going to explore a common task: sorting selected cells by last name in Excel. This can be particularly useful when you're working with large datasets containing names, such as a list of employees or customers.

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 dive into the steps, ensure that your data is structured with last names in a separate column. If not, you might need to use the 'Text to Columns' feature or a formula like `=RIGHT(A1,LEN(A1)-FIND(" ",A1))` to extract last names. Now, let's proceed with the sorting process.

Quickly Name Selected Cells in Excel
Quickly Name Selected Cells in Excel

Sorting Data in Excel

Excel provides a straightforward way to sort data. You can sort by one or more columns, in ascending or descending order. Let's start with the basics.

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

First, select the data range you want to sort. This includes the headers if you want to sort the entire table. Then, click on the 'Sort & Filter' button in the 'Home' tab. This will open the sorting dialog box.

Sorting by One Column

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

For our purpose, we want to sort by the last name column. In the dialog box, select the column you want to sort by (Last Name) and choose 'Sort A to Z' or 'Sort Z to A' depending on your preference. Click 'OK' to sort the data.

If your data has headers, Excel will sort the entire table. If not, it will sort only the selected range. You can also sort data in place by clicking on the column header and dragging it to the 'Sort & Filter' button.

Sorting by Multiple Columns

[EP 6] Excel Tips Separate First and Last name
[EP 6] Excel Tips Separate First and Last name

Sometimes, you might want to sort data by multiple columns. For instance, you might want to sort by last name first, then by first name. To do this, select the first column (Last Name) and choose your sorting order. Then, click on the 'Add Level' button to add another sorting level. Select the second column (First Name) and choose your sorting order. Click 'OK' to sort the data.

Remember, Excel sorts data level by level. So, if you have multiple levels, Excel will first sort by the first column, then sort the resulting data by the second column, and so on.

Sorting and Filtering Data

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

Sorting data is just one part of the equation. Excel also allows you to filter data based on specific criteria. This can be particularly useful when you want to analyze a subset of your data.

To filter data, select the column you want to filter, then click on the 'Filter' button in the 'Home' tab. This will add a dropdown arrow to the column header. Click on this arrow to open the filter menu. You can then choose to filter by specific values, text that contains, or other criteria.

Combine Cells in Excel
Combine Cells in Excel
How to Combine Data From Different Cells in Excel
How to Combine Data From Different Cells in Excel
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
How to remove duplicates and replace with blank cells in Excel?
How to remove duplicates and replace with blank cells in Excel?
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
How to Sort by Name in Excel (3 Examples) - ExcelDemy
How to Sort by Name in Excel (3 Examples) - ExcelDemy
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
Merge Two Columns in Excel with First Name and Last Name - ExcelDemy
Merge Two Columns in Excel with First Name and Last Name - ExcelDemy
Sortby Function in Excel
Sortby Function in Excel
copy filename to excel with the text copy filename to excel below it and arrows pointing up
copy filename to excel with the text copy filename to excel below it and arrows pointing up
Use the & in Excel
Use the & in Excel
Handling Names Excel
Handling Names Excel
Excel Count Cells with Text - Text and Values, Count any Text, Occurrence of specific Text
Excel Count Cells with Text - Text and Values, Count any Text, Occurrence of specific Text
How to Find Average of Specific Cells in Excel (3 Handy Ways) - ExcelDemy
How to Find Average of Specific Cells in Excel (3 Handy Ways) - ExcelDemy
Excel Keyboard Shortcuts Every Office User Should Know
Excel Keyboard Shortcuts Every Office User Should Know
Format Cells- Add Zeros
Format Cells- Add Zeros
Freeze Cells in Excel
Freeze Cells in Excel
an excel spreadsheet with the text slant cells in excel on top of it
an excel spreadsheet with the text slant cells in excel on top of it
Split First & Last Name Using Power Query | MyExcelOnline
Split First & Last Name Using Power Query | MyExcelOnline

Filtering by Text that Contains

Let's say you want to filter names that contain 'Smith'. In the filter menu, select 'Text that Contains', then type 'Smith' in the 'Contains' field. Click 'OK' to filter the data. This will show only the names that contain 'Smith'.

To remove the filter, click on the 'Filter' button again or click on the dropdown arrow and select 'Clear filter from "Last Name"'.

Filtering by Specific Values

If you want to filter by specific values, select 'Equals' in the filter menu, then type the value you want to filter by. For example, if you want to filter by 'Smith', type 'Smith' in the 'Equals' field. Click 'OK' to filter the data. This will show only the names that are exactly 'Smith'.

You can also filter by multiple values by selecting 'Equals' and then clicking on the 'Select All' checkbox. This will select all the values in the column. Click 'OK' to filter the data. This will show all the names that are exactly 'Smith', 'Johnson', 'Williams', etc.

Sorting and filtering data in Excel can greatly simplify your data analysis tasks. Whether you're working with a list of names, sales figures, or any other data, these tools can help you extract the insights you need. So, the next time you're working with a large dataset, give sorting and filtering a try. You might be surprised at how much easier your tasks become.