Skip to main content
HomeTutorialsExcel

How to Separate Names in Excel: 3 Easy Methods

Discover how to separate names in Excel with features like Text to Columns, Flash Fill, and custom-built formulas. Make your spreadsheets cleaner and easier to work with.
Aug 2024  · 7 min read

If you deal with messy spreadsheets with customer or product details, you know that coercing names into the right number of columns can be a real headache. Luckily, Excel provides multiple options for splitting names into columns to create a cleaner and more appealing spreadsheet.

I’ve spent a lot of time working with data, and splitting names is a task I've encountered more times than I can count. It's one of those skills that might seem unimportant initially, but it's a real turning point when dealing with large datasets.  Separating first and last names can change your cluttered spreadsheet into a well-organized information document.

So, in this article, I’ll show you several methods for how to separate names in Excel using Excel features and formulas, and you can choose the one that you like best. Before getting started, consider taking the Excel Fundamentals skill track to develop key skills like data preparation, formula writing, and creating visualizations—no prior experience needed.

Learn Excel Fundamentals

Gain skills to use Excel effectively—no experience required.
Start Learning for Free

Separate Names in Excel using Text to Columns

If you have a column where all names follow the same pattern (like first and last name or first, middle, and last name), the simplest method to divide them into individual columns is to use the Text to Columns feature.

Separate first and last names in Excel

Let’s first separate names using a space delimiter. Follow these steps:

  • Select the column of names.
  • Go to Data > Data Tools > Text to Columns.

Selecting the Excel Text to Columns option

Selecting the Text to Columns option. Image by Author

  • A three-step wizard will appear.
  • On the first step, select the Delimited option and hit Next.

Choose the Delimited option in the wizard window in Excel

Choosing the Delimited option. Image by Author.

  • Select your delimiter according to your data (semicolon, space, or comma) and hit Next. In my case, the names are separated by space, so I chose a Space delimiter. 
  • The Data preview box will then display how the parsed data will appear.

Select Space as a delimiter in the wizard window in Excel

Selecting Space as a delimiter. Image by Author.

  • Finally, set the Data Format and input a location for the Destination field to complete the process, then hit Finish. The default General format is suitable for most every case. Keep in mind, if there’s already any data in the column, it will be deleted.

Select General as a data format in the wizard window in Excel

Selecting General as a data format. Image by Author.

Here you can see the full name is divided into three columns—First Name, Middle Name, and Last Name.

Splitting names into first, middle, and last names with Text to Column in Excel

Data after splitting using the Text to Column feature. Image by Author.

Separate names in Excel with a comma and other delimiters

You can also use the Text to Columns feature if names are separated by commas, as in this example. It could also be semicolons, tabs, or any other delimiter instead of commas, but the splitting method will remain the same.

An Excel table containing names

An Excel table with names. Image by Author.

You’ve to follow the same steps:

  • Select the columns of names.
  • Go to Data Tab > Data Tools > Text to Columns
  • On the three-step wizard window, select the Delimited option and hit Next.
  • In the second step, choose the Comma as a delimiter, hit Next, and Finish in the last step.

Note: If you have anything else as an unavailable delimiter in the window, then choose the other option and specify your delimiter in the box.

Choosing Comma as a delimiter in Excel Text to Columns

Choosing Comma as a delimiter. Image by Author.

And it’s done. Excel successfully split my comma-delimited names into individual columns. They now look much cleaner and are easier to handle.

Split comma-separated names using Text to Column feature in Excel

Data after splitting names. Image by Author.

Separate names and emails in Excel

Let’s look at another example: I have a list of email addresses, and I want to separate the names from the domains. To do that, the Text to Columns feature is my go-to tool—it's the simplest and easiest. 

An Excel table containing email addresses

A table containing the email addresses. Image by Author. 

To do this, just follow the same steps above but select the Other option in the and specify the delimiter @. Hit Next and Finish. 

Applying the Text to Column feature in Excel and selecting the @ delimiter

Selecting the Other option and specifying the delimiter. Image by Author. 

Now you can see that Excel separates the names and domain namesDomain Names from email addressesEmail Addresses.

Splitting names and email addresses into separate columns using Text to Column feature in Excel

Separating names and email domains. Image by Author.

Separate Names in Excel with Custom Formulas

Text to Columns is excellent for a one-time split, but if you want to keep your data flexible and up-to-date, consider using formulas to divide the names. Once you understand how these formulas work, you'll wonder how you ever managed without them. 

Separate first and last names in Excel

You can combine the LEFT() and SEARCH() functions to extract the first name from a full name within a cell. To demonstrate this, I use the following formula on the names dataset:

=LEFT(A2,SEARCH(" ",A2)-1)

Extract the first name from full name using an Excel formula

Using LEFT() and SEARCH() formulas to split full names. Image by Author.

The formula identifies the position of the first space in the cell using the SEARCH() function. It then subtracts 1 from this position to determine the length of the first name. After this, the LEFT() function extracts the specified number of characters from the beginning of the cell, extracting the first name.

If you want to extract the last name from a full name, you can combine the LEN() function along with the RIGHT() and SEARCH() functions. To do so, I use the following formula on the same dataset: 

=RIGHT(A2,LEN(A2)-SEARCH(" ",A2))

In this formula, LEN()  calculates the total length of the Full Name. Then, SEARCH() determines the position of the first space within the name. Finally, the RIGHT() function extracts this number of characters from the end of the text string and extracts the last name.

Using an Excel formula to extract the first name from the full name

Using LEN() to extract the first name from the full name. Image by Author.

Separate middle names and suffixes

Now, if you want to split a full name into a first name, middle, and last name, you can’t do it with a simple LEN() or SEARCH() formula. You have to make three columns and use different formulas to extract each part of the name. 

For example, I have a column of names and want to split the names into three columns: First, Middle, and Last. I can do this by applying a formula in three different columns.

  • Extract the first name: =LEFT(A2,SEARCH(" ",A2)-1)

  • Extract the middle name: =MID(A2, SEARCH(" ", A2) + 1, SEARCH(" ", A2, SEARCH(" ", A2)+1) - SEARCH(" ", A2)-1)

  • Extract the last name: =RIGHT(A2,LEN(A2) - SEARCH(" ", A2, SEARCH(" ", A2,1)+1))

Split names into first, middle, and last names when names in Excel

Split names into first, middle, and last names. Image by Author.

You can apply a similar method to names with suffixes like this:

  • Extract the first name: =LEFT(A2,SEARCH(" ",A2)-1)

  • Extract the last name: =MID(A2, SEARCH(" ",A2) + 1, SEARCH(",",A2) - SEARCH(" ",A2)-1)

  • Extract the suffix: =RIGHT(A2, LEN(A2) - SEARCH(" ", A2, SEARCH(" ",A2)+1))

Get First, Last, and Suffix using an Excel formula

Getting First Name, Last Name, and Suffix. Image by Author.

And that’s it. You only need a bit of practice to master these formulas, and you’ll be good to go. 

Separate Names in Excel Using Flash Fill

Flash Fill is another feature in Excel that automatically recognizes patterns in data and fills in the rest based on those patterns. You can use this to split names into separate columns. 

Since Flash Fill is enabled by default, you only have to do the following:

  • Insert a new column next to the Full Name column. 
  • Enter the first name in the second cell. If Excel detects a pattern (which it often does), it will automatically complete the first names in the rest of the cells.
  • Hit Enter, and you’re done.

Getting First Name using the Flash Fill in Excel

Getting First Name using the Flash Fill. Image by Author.

If Flash Fill doesn’t automatically fill in the data, you can manually activate it by clicking Flash Fill under the Data Tab. If this doesn't work, go to File > Options > Advanced and check Automatically Flash Fill.

Final Thoughts

You now know several ways (Text to Columns, formulas, and Flash Fill) to separate names in Excel. Each method has advantages, but use the one that aligns with your dataset's complexity and specific needs.

But there's so much more to explore in Excel. If you want to build a solid foundation, start with an Introduction to Excel course. If you're ready to go into technical data manipulation, the Data Analysis in Excel course and the Excel Fundamentals skill track are excellent next steps.

If you are using Excel for more specialized tasks, the Financial Modeling in Excel course can help you master complex calculations and financial projections. If you're focused on getting your data ready for analysis, the Data Preparation in Excel course is what you need to ensure your data is clean and structured correctly.

So, go ahead and continue your learning journey. Excel is a helpful tool, and with these skills, you can tackle any data challenge that comes your way.

Advance Your Career with Excel

Gain the skills to maximize Excel—no experience required.

Start Today for Free

Photo of Laiba Siddiqui
Author
Laiba Siddiqui
LinkedIn
Twitter

I'm a content strategist who loves simplifying complex topics. I’ve helped companies like Splunk, Hackernoon, and Tiiny Host create engaging and informative content for their audiences.

Frequently Asked Questions

Can I split names into all uppercase or mixed cases?

Yes, you can use the PROPER() function to standardize the splitting cases.

Can I split names if there is inconsistent spacing between them?

Yes, first, use the TRIM() function to remove extra spaces, then apply the Text to Columns feature or formulas.

How do I handle splitting names when some entries have middle names and others do not?

Use a combination of IF() and ISERROR() functions to handle such cases.

Is there a way to reverse the process and combine split names back into full names?

Yes, you can use concatenation formulas like =A2 & " " & B2 to combine first and last names into a single column.

Topics

Learn Excel with DataCamp

Course

Data Analysis in Excel

3 hr
49.4K
Learn how to analyze data with PivotTables and intermediate logical functions before moving on to tools such as what-if analysis and forecasting.
See DetailsRight Arrow
Start Course
See MoreRight Arrow
Related

tutorial

How to Clean Data in Excel: A Beginner's Guide

Learn essential data cleaning techniques in Excel, including removing duplicates, handling missing values, and maintaining consistent formatting.
Laiba Siddiqui's photo

Laiba Siddiqui

15 min

tutorial

How to Compare Two Columns in Excel: A Step-by-Step Guide

Learn how to compare two columns in Excel for matches and for duplicates using methods like the equals operator, IF() function, EXACT(), VLOOKUP(), and more.
Laiba Siddiqui's photo

Laiba Siddiqui

9 min

tutorial

Pivot Tables in Spreadsheets

Learn how to organize rows and columns, add values, find the sum of revenue, and finally apply filtering to select a subset of data from a given dataset.
Aditya Sharma's photo

Aditya Sharma

10 min

tutorial

Getting Started with Spreadsheets

This tutorial will give you a basic understanding of the terminology in spreadsheets along with learning how to create a basic table.
Ryan Sheehy's photo

Ryan Sheehy

5 min

tutorial

Conditional Formatting in Excel: A Beginner’s Guide

Explore conditional formatting in Excel with simple to advanced examples and their best practices.
Joleen Bothma's photo

Joleen Bothma

7 min

tutorial

Data Types in Excel and Their Uses: A Complete Guide

Learn to identify and format all types of data in Excel, then explore valuable tips on converting between data types to make your spreadsheet more functional.
Laiba Siddiqui's photo

Laiba Siddiqui

9 min

See MoreSee More