How to split names in excel
Tutor 5 (70 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To split names in Excel, use the Text to Columns feature, Flash Fill, or formulas like LEFT, RIGHT, MID, FIND, and TEXTSPLIT.
Using Text to Columns for Name Splitting
Text to Columns divides full names into separate columns based on delimiters. This method works best when names have consistent formatting with spaces or commas between first and last names.
- Select the column containing the full names
- Navigate to the Data tab on the ribbon
- Click Text to Columns
- Choose Delimited and click Next
- Select Space as the delimiter
- Click Next and then Finish
The names split into adjacent columns automatically. Names with middle names or initials create additional columns.
Flash Fill Method for Name Separation
Flash Fill recognizes patterns and automatically fills data based on examples you provide. This feature requires Excel 2013 or newer versions.
- Type the first name from cell A2 into cell B2
- Start typing the second first name in B3
- Excel suggests the remaining first names
- Press Enter to accept the suggestions
- Repeat the process in column C for last names
Flash Fill works on Windows by pressing Ctrl+E. Mac users press Command+E for the same function.
Formula Methods for Extracting Name Components
Extracting First Names
The formula combination of LEFT and FIND functions extracts first names from full names:
This formula locates the first space and returns all characters before it. The FIND function identifies the space position, and LEFT extracts characters from the beginning up to that position minus one.
Extracting Last Names
The RIGHT, LEN, and FIND functions work together to extract last names:
This formula calculates the number of characters after the first space. LEN counts total characters, FIND locates the space, and RIGHT returns the remaining characters.
Handling Middle Names or Initials
Names with middle components require different approaches. The MID function extracts middle names:
This formula finds text between the first and second spaces. Complex names with multiple middle names need adjusted formulas with additional FIND functions.
TEXTSPLIT Function for Modern Excel Versions
Excel 365 and Excel 2021 include the TEXTSPLIT function, which simplifies name splitting:
This function automatically creates a dynamic array with each name component in separate cells. The formula spills across columns based on the number of name parts.
Handling Special Cases in Name Splitting
Names with Titles or Suffixes
Names containing titles (Dr., Mr., Ms.) or suffixes (Jr., Sr., III) need preprocessing. Create helper columns to identify and remove these elements before splitting:
Hyphenated Last Names
Hyphenated surnames remain intact during space-based splitting. The hyphen keeps compound last names together in a single cell.
Names in Last, First Format
Names formatted as "Last, First" require comma
delimiters instead of spaces. Select the comma in the Text to Columns delimiter
options or adjust formulas:
Power Query for Advanced Name Splitting
Power Query handles large datasets and complex name formats efficiently. Access Power Query through Data > Get Data > From Table/Range.
- Select the name column in Power Query Editor
- Go to Transform tab
- Click Split Column
- Choose By Delimiter
- Select Space or Custom delimiter
- Specify the number of columns or split at each occurrence
Power Query saves transformation steps for reuse with new data. The method processes thousands of rows without formula copying.
Best Practices for Name Splitting
Clean data before splitting improves accuracy. Remove extra spaces using the TRIM function:
Standardize name formats across the dataset. Convert text case using UPPER, LOWER, or PROPER functions for consistency.
Create backup columns before applying irreversible methods like Text to Columns. Formula-based approaches preserve original data while Text to Columns overwrites adjacent cells.
Test splitting methods on sample data first. Different name formats within the same dataset might require multiple approaches or manual adjustments.
Regular expressions through VBA provide the most flexibility for complex patterns. VBA macros handle international names, multiple middle names, and various cultural naming conventions with custom logic.
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
How to add secondary axis in excel
Answers · 1
How to switch columns to rows in excel
Answers · 1
How to subtract on excel
Answers · 1
How to combine two cells of text in excel
Answers · 1