How to split text by space/comma/delimiter in Excel?
If you have a column list of data and you want to split them into several columns by a specific delimiter just like the below screenshots shown, how can you split them in Excel? Maybe some of users think of the Text to Column function only, but now I will introduce not only Text to Columns function, but also a VBA code for you.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words...
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum...
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns...
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Create Mailing List and Send Emails by Cell's Value...
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
Text to Columns feature is very useful to split a list to multiple columns in Excel. This method is talking about how to split data by specified delimiter with Text to Column feature in Excel. Please do as follows:
1. Select the column list you want to split by delimiter, and click Data > Text to Columns. See screenshot:
2. Then a Convert Text to columns Wizard dialog pops out, and check Delimited option, and click Next button. See screenshot:
3. In the opening Convert to Text to Columns Wizard - Step 2 of 3 dialog box, please check the delimiter you need to split the data by.
Note: If you need to split your text string by a special delimiter, please check the Other option, and then type the delimiter into following box.
4. Click Finish. Now you can see the column list in selection has been split into multiple columns by the specified delimiter.
Above method can only split text strings into multiple columns. This method will introduce Kutools for Excel's Split Cells utility to split text strings into multiple rows or columns by specified delimiter in Excel easily.
1. Select the range you will split text strings (in our case we select the range A1:A9 ), and click Kutools > Text > Split Cells.
2. In the opening Split Cells dialog box, please check the Split to Rows option or Split to Columns options as you need in the Type section, next specify a delimiter in the Specify a separator section, and click the Ok button. See screenshot above:
Now another Split Cells dialog box pops out, please select the first cell of destination range and click the OK button.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 1 months agoThis just shows how horrible excel is...how about a SPLIT function?? Duh...
To post as a guest, your comment is unpublished.· 8 months agoOk, so here is a problem I am stuck on that I cannot seem to resolve. I am looking to break up a long string of text with the following requirements:
1) Text can only be broken up at a space (not in the middle of a word)
2) The total length for each parsed cell must be as close to 40 characters as it can get using the space rule above.
For example, this comes in a single cell: "It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief". In this example, I would expect the formula to break up this text into 4 cells:
It was the best of times, it was the
worst of times, it was the age of
wisdom, it was the age of foolishness,
it was the epoch of belief
I keep getting wrapped around the axle trying to use a combo of left,mid,right and search/find formulas, but not only is it very inelegant, but as soon as I run into a non-unique word, my find formula breaks down.
To post as a guest, your comment is unpublished.· 8 months agoThanks. It is really helpful.
To post as a guest, your comment is unpublished.· 10 months agoHello, How do i separete a long sentence into columns like
12534_MK_EC0102-Kanyuambora_OUTA 172.22.118.13 255.255.255.192 172.22.118.1. I need the process of separating to columns of: Site ID 12534_MK_EC0102; Site Name Kanyuambora_OUTA;IP 172.22.118; Mask 255.255.255; Gateway 172.22.118.1. Kindly assist.
To post as a guest, your comment is unpublished.· 8 months agoHi Cosmas,
How do you want to split the lone sentences by? In your example, you can split the sentence by the delimiter “_” or “;” or “.”
Just try them as you need!
To post as a guest, your comment is unpublished.· 8 months agoYou can use the FIND and LEN commands to separate fields, for example :
A1: 12534_MK_EC0102-Kanyuambora_OUTA 172.22.118.13 255.255.255.192 172.22.118.1.
B1: =FIND(" ",$A$1) B2: =FIND(" ",$A$1,B1+1) B3: "Fill Down From B2"
C1: =LEFT($A$1,B1) C2: =RIGHT(LEFT($A$1,B2),B2-B1) C3: "Fill Down From C2"
To post as a guest, your comment is unpublished.· 9 months agoHi Cosmas,
You can apply the Text to Columns feature on the Data tab in Excel Ribbon. In the Wizard, please set both delimiters of space and custom delimiters -, and it will split your long cell content to desired columns.
To post as a guest, your comment is unpublished.· 1 years agoThank you so much for posting this, it's really very helpful at times.
To post as a guest, your comment is unpublished.
To post as a guest, your comment is unpublished.· 1 years agoTHAK YOU!!!
To post as a guest, your comment is unpublished.· 2 years agoThanks god, and by that I mean you for this. Saved me a lot work. Thank you again.
To post as a guest, your comment is unpublished.· 2 years agoThis saved me hours of retyping a list of addresses. THANK YOU!!!!
To post as a guest, your comment is unpublished.· 2 years agoi need to sperate a word from sentence in excel sheet which is present in the single cell.
eg : abcds ----- sri
To post as a guest, your comment is unpublished.· 2 years agoKudos to you guys you make my day
To post as a guest, your comment is unpublished.· 2 years agoPlease enter text of your comment!
To post as a guest, your comment is unpublished.· 3 years agoThanks for this information. It's very useful and easy to understand.
To post as a guest, your comment is unpublished.
To post as a guest, your comment is unpublished.· 4 years agohina excel ghskj t'amfngeh 'afkndjgb s'difhjsdfnsalodfhakaf