How to Split First and Last Name in Excel

Do you often find yourself with a column of full names in Excel and wish to separate them into first and last names? You're not alone. This task is quite common...

Do you often find yourself with a column of full names in Excel and wish to separate them into first and last names? You're not alone. This task is quite common, and Excel provides a simple way to achieve this using the TEXTSPLIT function, introduced in Excel 365 and Excel for the web. Let's dive into how you can split a column of full names into first and last names using this function.

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 begin, ensure you're using Excel 365 or the web version, as the TEXTSPLIT function is not available in earlier versions. Also, this method works best when the first name is always before the last name and separated by a space.

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 splitting the names, ensure your data is clean and formatted correctly. Remove any extra spaces, commas, or other separators that might interfere with the split. Here's how you can do this:

How to Separate First and Last Name in Excel
How to Separate First and Last Name in Excel

1. Select the column with full names. Go to the 'Home' tab, click on 'Find & Select', then 'Replace'.

2. In the 'Find what' field, enter any unwanted separators (like commas, extra spaces), and in the 'Replace with' field, leave it blank. Click 'Replace All'.

How to Split Text Data of a Cell to Column in Excel - ExcelDataPro
How to Split Text Data of a Cell to Column in Excel - ExcelDataPro

Using TEXTSPLIT Function

The TEXTSPLIT function is designed to split text based on a delimiter. In our case, the delimiter is a space. Here's the syntax:

`=TEXTSPLIT(text, delimiter)`

How to Split Full Names to First, Middle and Last Names by Comma
How to Split Full Names to First, Middle and Last Names by Comma

Where 'text' is the full name, and 'delimiter' is the space between the first and last names.

Applying TEXTSPLIT Function

Now, let's apply the function to split the names. Assume your full names are in column A (A2:A100).

Split First & Last Name Using Power Query | MyExcelOnline
Split First & Last Name Using Power Query | MyExcelOnline

1. In cell B2, enter the formula: `=TEXTSPLIT(A2," ")`

2. Press Enter. You should see the first name in B2 and the last name in C2.

How to Split Text to Columns in Excel with Multiple Delimiters using TEXTSPLIT in Excel Formula
How to Split Text to Columns in Excel with Multiple Delimiters using TEXTSPLIT in Excel Formula
How to split the cells in excel
How to split the cells in excel
Excel: Split First and Last Name (Easily!)
Excel: Split First and Last Name (Easily!)
a blue background with the text split first and last names next to columns on it
a blue background with the text split first and last names next to columns on it
How to Separate Full Name to First & Last Name in Excel One Column to Two
How to Separate Full Name to First & Last Name in Excel One Column to Two
How To Split Text Into Multiple Columns Using Text to Column In Excel
How To Split Text Into Multiple Columns Using Text to Column In Excel
Split inconsistent text like a pro in Excel
Split inconsistent text like a pro in Excel
How to Split Names in Excel for Cleaner Data (Includes practice file)
How to Split Names in Excel for Cleaner Data (Includes practice file)
How to Split Names into Three Columns in Excel (3 Methods) - ExcelDemy
How to Split Names into Three Columns in Excel (3 Methods) - ExcelDemy
Split First & Last Name Using Text to Columns | MyExcelOnline
Split First & Last Name Using Text to Columns | MyExcelOnline
a woman in an orange shirt is sitting at a desk and has the words split first / last name on it
a woman in an orange shirt is sitting at a desk and has the words split first / last name on it
How to Split Text in Cells with Flash Fill in Excel
How to Split Text in Cells with Flash Fill in Excel
How to Split Full Names To First And Last Names By Comma
How to Split Full Names To First And Last Names By Comma
Split data into different columns in Microsoft Excel
Split data into different columns in Microsoft Excel
Excel
Excel
How to Split Full Name into First Name, Middle Name and Last Name in Excel Using Text to Column
How to Split Full Name into First Name, Middle Name and Last Name in Excel Using Text to Column
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
How to Use Columns Formula in Excel
How to Use Columns Formula in Excel
How To Combine Two Columns In Excel
How To Combine Two Columns In Excel
Grouping Rows/Columns in Excel📚
Grouping Rows/Columns in Excel📚

3. To apply this formula to the entire list, hover your mouse over the small square in the bottom-right corner of cell B2 until it turns into a plus sign. Click and drag down to copy the formula for the rest of the names.

Handling Middle Names

If some entries have middle names, the TEXTSPLIT function will include them in the first name. To handle this, you can use the LEN and MID functions to check if the first name has more than one word. If it does, assume the extra word is the middle name and move it to a new column.

Identifying Middle Names

In a new column (let's say D), enter the following formula: `=IF(COUNTIF(B2," * ")>1,MID(B2,FIND(" ",B2)+1,LEN(B2)-FIND(" ",B2)-1),"")`

This formula checks if the first name has more than one word. If it does, it extracts the middle name. If not, it leaves the cell blank.

Moving Middle Names to a New Column

Now, you can move the middle names to a new column (let's say E) using the IFERROR function: `=IFERROR(D2,"")`

This formula moves the middle names to column E, leaving blank cells where there are no middle names.

And there you have it! You've successfully split a column of full names into first, last, and middle names (where applicable). This method should work for most cases, but remember that Excel's text manipulation functions have their limitations. Always double-check your results, especially when dealing with complex or varied data.

Now that you know how to split names in Excel, you can streamline your data management processes and gain more insights from your data. Happy splitting!