Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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.

Split text strings into multiple columns by space/comma/delimiter with Text to Columns

Split text strings into multiple rows/columns by space/comma/delimiter

Easily split text and numbers from one cell/column into different columns/rows

Easily combine multiple worksheets/workbooks/CSV files into one worksheet/workbook

It may be tedious to combine dozens of sheets from different workbooks into one sheet. But with Kutools for Excel’s Combine (worksheets and workbooks) utility, you can get it done with just several clicks! Full Feature Free Trial 60-day!
ad combine sheets books 1


arrow blue right bubble Split text strings into multiple columns by space/comma/delimiter by Text to Columns feature

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.


arrow blue right bubble Split text strings into multiple rows/columns by space/comma/delimiter with Kutools for Excel

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.

Kutools for Excel - Combines more than 300 Advanced Functions and Tools for Microsoft Excel


1. Select the range you will split text strings (in our case we select the range A1:A9 ), and click Kutools > Text > Split Cells.

doc split text 01

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.

doc split text to rows columns 10

Free Download Kutools for Excel Now


arrow blue right bubbleDemo: Split text strings into multiple rows/columns by space/comma/delimiter

In this Video, the Kutools tab and the Kutools Plus tab are added by Kutools for Excel. If need it, please click here to have a 60-day free trial without limitation!


Easily split text and numbers from one cell/column into different columns/rows

Kutools for Excel enhances its Split Cells utility and supports to batch separate all text characters and numbers of one cell/column into two columns/rows. Full Feature Free Trial 60-day!

ad split cell separate text numbers


arrow blue right bubbleRelative Articles:



Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 300 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Eric · 1 months ago
    Ok, 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.
    Guest · 1 months ago
    Thanks. It is really helpful.
  • To post as a guest, your comment is unpublished.
    Cosmas Kirui Tugatt · 3 months ago
    Hello, 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.
      kellytte · 1 months ago
      Hi 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.
      TxCentrist · 1 months ago
      You 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.
      kellytte · 2 months ago
      Hi 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.
    Suraj Gupta · 7 months ago
    Thank you so much for posting this, it's really very helpful at times.
  • To post as a guest, your comment is unpublished.
    Huy Nguyen · 8 months ago
    "172.22.118.13
    255.255.255.192
    172.22.118.1"

    how do i split that cell information into 3 columns?
    • To post as a guest, your comment is unpublished.
      kellytte · 2 months ago
      Hi Huy,
      How do you want to split the cells by? By length? By delimiter of dot? Or others?