Split names by using the Convert Text to Columns Wizard
Use the Convert Text to Columns Wizard to separate simple cell content, such as first names and last names, into different columns.
| Full name | First name | Last name | |
| Syed Abbas | Syed | Abbas | |
| Molly Dempsey | Molly | Dempsey | |
| Lola Jacobsen | Lola | Jacobsen | |
| Diane Margheim | Diane | Margheim |
Depending on your data, you can split the cell content based on a delimiter, such as a space or a comma, or based on a specific column break location within your data.What do you want to do?
Split content based on a delimiterSplit space-delimited content Split comma-delimited content
Split cell content based on a column break
Split content based on a delimiter
Use this method if your names have a delimited format, such as "First_name Last_name" (where the space between First_name and Last_name is the delimiter) or "Last_name, First_name" (where the comma is the delimiter).
Split space-delimited content
To complete these steps, copy the following sample data to a blank worksheet.
How to copy an example
- Create a blank workbook or worksheet.
- Select the example in the Help topic.
Note Do not select the row or column headers.
- Press CTRL+C.
- On the worksheet, select cell A1, and then press CTRL+V.
- To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the
Formulastab, in theFormula Auditinggroup, click theShow Formulasbutton.
|
|
- Select the range of data that you want to convert.
- On the
Datatab, in theData Toolsgroup, clickText to Columns. - In Step 1 of the Convert Text to Columns Wizard, click
Delimited, and then clickNext. - In Step 2, select the
Spacecheck box, and then clear the other check boxes underDelimiters.The
Data previewbox shows the first and last names in two separate columns.
- Click
Next. - In Step 3, click a column in the
Data previewbox, and then clickTextunderColumn data format.Repeat this step for each column in the
Data previewbox. - If you want to insert the separated content into the columns next to the full name, click the icon to the right of the
Destinationbox, and then select the cell next to the first name in the list (B2, in this example).
Important If you do not specify a new destination for the new columns, the split data will replace the original data.
- Click the icon to the right of the
Convert Text to Columns Wizard.
- Click
Finish.
Split comma-delimited content
To complete these steps, copy the following sample data to a blank worksheet.
How to copy an example
- Create a blank workbook or worksheet.
- Select the example in the Help topic.
Note Do not select the row or column headers.
- Press CTRL+C.
- On the worksheet, select cell A1, and then press CTRL+V.
- To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the
Formulatab, in theFormula Auditinggroup, click theShow Formulasbutton.
|
|
- Select the range of data that you want to convert.
- On the
Datatab, in theData Toolsgroup, clickText to Columns. - In Step 1 of the Convert Text to Columns Wizard, click
Delimited, and then clickNext. - In Step 2, select the
Commacheck box, and then clear the other check boxes underDelimiters.The
Data previewbox displays the first names and last names in two separate lists.
-
Click
Next. - In Step 3, click a column in the
Data previewbox, and then clickTextunderColumn data format.Repeat this step for each column in the
Data previewbox. - If you want to show the separated content in the columns next to the full name, click the icon to the right of the
Destinationbox, and then select the cell next to the first name in the list (B2, in this example).
Important If you do not specify a new destination for the new columns, the divided data will replace the combined data.
- Click the icon to the right of the
Convert Text to Columns Wizard.
- Click
Finish.
Split cell content based on a column break
You can also customize how you want your data to be separated by specifying a fixed column break location.
- Select the cell or range of cells.
- On the
Datatab, in theData Toolsgroup, clickText to Columns. - In Step 1 of the Convert Text to Columns Wizard, click
Fixed Width, and then clickNext. - In the
Data previewbox, drag a line to indicate where you want the content to be divided.
Tip To delete a line, double-click it.
- Click
Next. - In Step 3, select a column in the
Data previewbox, and then click a format option underColumn data format.Repeat this step for each column in the
Data previewbox. - If you want to show the split content in the columns next to the full name, click the icon to the right of the
Destinationbox, and then click the cell next to the first name in the list.
Important If you do not specify a new destination for the new columns, the divided data will replace the original data.
- Click the icon to the right of the
Convert Text to Columns Wizard.
- Click
Finish.