Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Pulling Apart Cells.
It's probably happened to you before: you get data for your worksheet, and one of the columns includes names. The only problem is the names are all bunched together. For instance, the cell contains "Allen Wyatt," but you would rather have the first name in one column, and the last name in the neighboring column to the right. How do you pull the names apart?
You can easily use the Text to Columns feature in Excel to pull your data apart. Just follow these steps:

Figure 1. The beginning of the Convert Text to Columns Wizard.
Excel pulls apart the cells in your selected range, separating all the text at the delimiter you specified. Excel uses however many columns are necessary to hold the data. (Make sure you have blank columns to the right of the one you are splitting. If you don't, you could easily overwrite data already in those columns.)
If you don't want to spread your data completely across the columns, then you will need to use a macro. For instance, if a cell contains "John Davis, Esq.", then using the Text to Columns feature will result in the data being spread into three columns: the first containing "John", the second containing "Davis," (with the comma), and the third containing "Esq." If you would rather have the data split into two columns ("John" in one and "Davis, Esq." in the other, then the following macro will be helpful:
Sub PullApart()
Dim Cell As Range
Dim k As Integer
For Each Cell In Selection
k = InStr(Cell, " ")
If k Then
Cell.Offset(0, 1) = Mid(Cell, k + 1)
Cell = Left(Cell, k - 1)
End If
Next
End Sub
This macro examines each cell and leaves everything up to the first space in the selected cell and moves everything after the space into the column to the right. The only "gottcha" with this macro is to make sure you have nothing in the column to the right of whatever cells you select when you run it.
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9932) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Pulling Apart Cells.
Best-Selling VBA Tutorial for Beginners Take your Excel knowledge to the next level. With a little background in VBA programming, you can go well beyond basic spreadsheets and functions. Use macros to reduce errors, save time, and integrate with other Microsoft applications. Fully updated for the latest version of Office 365. Check out Microsoft 365 Excel VBA Programming For Dummies today!
When you cut and paste rows using Ctrl+X and Ctrl+V, Excel leaves empty the rows where the cut information was previously ...
Discover MoreDo you need a way to split dates out into the individual parts that make up that date? This tip provides two easy ways ...
Discover MoreWhen setting up a worksheet for others to use, you might want to make some limitations on what can be entered in certain ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2026-10-03 07:55:42
Andy
Any discussion of how to split text in Excel should also consider:
* Flash Fill - introduced in Excel 2013 - which is probably the fastest and most user-friendly way to split text if it's a one-off task. https://support.microsoft.com/en-us/excel/using-flash-fill-in-excel
* The TEXTSPLIT function - Microsoft 365, or Excel 2024 onwards. https://support.microsoft.com/en-us/excel/functions/textsplit-function
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2026 Sharon Parq Associates, Inc.
Comments