Skip to main content

Excel tutorial: split text, number, and date cells (separate into multiple columns)

Author Siluvia Last modified

When using Excel, you may need to split text from one cell into multiple cells for some purposes. This tutorial is divided into three parts: split text cells, split number cells and split date cells. Each part provides different examples to help you know how to handle the splitting job when encountering the same problem.

Table of Contents: [ Hide ]

(Click on any heading in the table of contents below or on the right to navigate to the corresponding chapter.)

1 Split text cells

This part collects the situations you will encounter when splitting a text cell into multiple columns, and provides the corresponding methods for you.

Example #1 Split cells by comma, space or other delimiter(s)

To split a text cell into multiple columns by a specific delimiter such as comma, space, dash and so on, you can apply one of the below methods.

Split cells by delimiter with the Text to Columns feature

The Text to Columns feature, as an Excel built-in, is frequently used in splitting cells. As shown in the screenshot below, to split cells in the Text Strings column by comma, you can apply the Text to Columns feature as follows.

A screenshot of a text cell split into multiple columns

1. Select the column range you want to split by comma, click Data > Text to Columns.

A screenshot of the Text to Columns option in Excel ribbon

2. In the Convert Text to Columns Wizard – Step 1 of 3 dialog box, keep the Delimited radio button selected, and then click the Next button.

A screenshot of the Convert Text to Columns Wizard – Step 1 of 3 dialog box with the Delimited option selected

3. In the Convert Text to Columns Wizard – Step 2 of 3 dialog box, specify a delimiter according to your needs (in this case, I only check the Comma checkbox), and then click the Next button.

A screenshot of the Convert Text to Columns Wizard – Step 2 of 3 dialog box showing delimiters selection

4. In the last step dialog box, click the Destination cell selection button button to select a cell to output the separated texts, and then click the Finish button.

A screenshot of selecting a cell for the output in the Convert Text to Columns Wizard

Then texts in the selected range are split by a comma and placed in different columns as shown below.

A screenshot of a text cell split into multiple columns

Split cells by delimiter with formula

You can apply the below formula to split texts in cells by a specified delimiter in Excel.

Generic formula

=TRIM(MID(SUBSTITUTE(A1,delim,REPT(" ",LEN(A1))),(N-1)*LEN(A1)+1,LEN(A1)))

Arguments

Delim: The delimiter used to split the text string;
A1: Represents the cell containing the text string you will split;
N: A number that represents the nth substring of the text string you will split.

Then go ahead to apply this formula.

1. As shown in the screenshot below, first, you need to create a helper row with the number 1, 2, 3... locating in different cells.

Note: Here 1, 2, 3... represent the first, second, and the third substring of the text string.

A screenshot of a helper row with numbers 1, 2, 3... created for splitting text strings in Excel

2. Select a cell under the number 1 cell, copy or enter the below formula into it and press the Enter key to get the first substring of the text string. Select the result cell, drag its AutoFill Handle right and down to get the other substrings. See screenshot:

=TRIM(MID(SUBSTITUTE($B5,",",REPT(" ",LEN($B5))),(D$4-1)*LEN($B5)+1,LEN($B5)))

A screenshot showing the AutoFill Handle used to extend the formula for splitting text strings in Excel

Note: In the formula, “,” is the delimiter used to split the text string in B5. You can change it according to your needs.

Split cells by delimiter with an amazing tool

Here, we recommend the Kutools for Excel’s Split Cells feature to help you easily split cells into separate columns or rows by a certain delimiter in Excel.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. After installing Kutools for Excel, select the range where you want to split the text strings, and then click Kutools > Merge & Split > Split Cells.

A screenshot showing the Split Cells option under the Kutools tab in Excel

2. In the Split Cells dialog box, you need to configure as follows.

2.1) The selected range is listed in the Split range box, you can change it as you need;
2.2) In the Type section, select the Split to Rows or Split to Columns radio button;
2.3) In the Split by section, select the delimiter you need. If the needed delimiter does not list in this section, select the Other radio button and then enter a delimiter into the textbox. In this case, I enter a comma into the textbox;
2.4) Click OK. See screenshot:

A screenshot of the Kutools Split Cells dialog box with delimiter configuration

3. In the next Split Cells dialog box, select a cell to output the substrings, and then click OK.

A screenshot of the final Kutools Split Cells dialog box to select the output location

Then substrings are split into different columns or rows based on your specified in step 2 above.

Split to columns:

A screenshot of text strings split into columns using Kutools

Split to rows:

A screenshot of text strings split into rows using Kutools

Example #2 Split cells by certain length

To split text string by certain length, the following methods can do you a favor.

Split cells by certain length with the Text to Columns feature

The Text to Columns feature provides a Fixed width option to help you split text strings in selected cells by certain length in Excel.

As shown in the screenshot below, to split the texts in range B5:B9 into columns every 3 characters, you can do as follows to get it done.

A screenshot showing cells to be split by fixed width

1. Select the cells where you want to split the text strings.

2. Click Data > Text to Columns.

3. In the Convert Text to Columns Wizard – step 1 of 3 dialog box, select the Fixed width radio button and click Next.

A screenshot of the Convert Text to Columns Wizard step 1 of 3 dialog box in Excel with Fixed width selected

4. Then the Step 2 of 3 dialog box pops up. In the Data preview section, click at the desired position on the axis to create a break line (a line with arrow). After creating all break lines, click the Next button to go ahead.

In this case, I create break lines for every 3 characters in the text string.

A screenshot of the Convert Text to Columns Wizard step 2 of 3 dialog box with break lines placed to split text

5. In the last step wizard, select a cell to output the separated texts, and then click the Finish button.

A screenshot of the Convert Text to Columns Wizard step 3 of 3 dialog box in Excel with output cell highlighted

Now the text strings in selected cells are split by every 3 characters as shown in the screenshot below.

A screenshot of text strings split into separate columns every 3 characters in Excel

Split cells by certain length with an amazing tool

To split cells by certain length in Excel, you can apply the Split Cells feature of Kutools for Excel to get it done easily.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Select the text string cells you want to split by certain length, click Kutools > Merge & Split > Split Cells.

2. In the Split Cells dialog box, you need to configure as follows.

2.1) The range you selected in step 1 is listing in the Split range box, you can change it if you need;
2.2) In the Type section, choose the Split to Rows or Split to Columns option according to your needs;
2.3) In the Split by section, select the Specify width radio button, enter a number representing the character length that used to split the text string. In this case, I enter the number 3 into the text box;
2.4) Click the OK button.

A screenshot of the Split Cells dialog box with Split by width option selected

3. In the next Split Cells dialog box, select a cell to place the splitting texts and then click OK.

A screenshot of the Split Cells dialog box in Kutools for Excel with output destination selected

Then the text strings in the selected cells are split by certain length and placed in different columns.

Example #3 Split cells by a certain word

As shown in the screenshot below, to split text strings in range B5:B9 by an entire word “sales”, you can apply the formulas provided in this section.

A screenshot of text strings in Excel to be split by the word 'sales'

Get the substring before a certain word in a cell

Applying a formula based on the LEFT and the FIND functions can help to get the substring before a certain word in a text string.

Generic formula

=LEFT(A1,FIND("certain_word", A1)-1)

Arguments

A1: Represents the cell containing the text string you want to split by a certain word;
Certain_word: The word used to split a text string. It can be a cell reference to the word or an exact word enclosed with double quotation marks;

1. Select a blank cell, copy or enter the below formula into it and press the Enter key to get the substring before the certain word. Select this result cell, and then drag its AutoFill Handle down to apply the formula to other cells.

=LEFT(B5,FIND("sales",B5)-1)

A screenshot of the formula used in Excel to get the substring before a certain word

Get the substring after a word in a cell

After getting the substring before the word, you need to apply the below formula to get the substring after it.

Generic formula

=TRIM(MID(A1,SEARCH("certain_word",A1)+LEN("certain_word"),255))

Arguments

A1: Represents the cell containing the text string you want to split by a certain word;
Certain_word: The word used to split a text string. It can be a cell reference to the word or an exact word enclosed with double quotation marks;

1. Select a blank cell next to the first result cell (D5).

2. Copy or enter the below formula into it and press the Enter key. Select this result cell, drag its AutoFill Handle down to get the other results.

=TRIM(MID(B5,SEARCH("sales",B5)+LEN("sales"),255))

A screenshot of the formula used in Excel to get the substring after a certain word

Now you have split text strings into different columns by an entire word.

Example #4 Split cells by line break

This section demonstrates different methods to help you split text cells by line break in Excel.

A screenshot of Excel with a table, showing the selected cells to be split by line breaks

Split cells by line break with the Text to Columns feature

The Text to Columns feature can be applied to split cells by line break in Excel. You can do as follows.

1. Select the range of cells where you want to split the texts by line break.

2. Click Data > Text to Columns.

3. In the Convert Text to Columns Wizard – Step 1 of 3 dialog box, choose the Delimited radio button and then click Next;

A screenshot of the Convert Text to Columns Wizard in Excel, showing the Delimited option selected

4. In the Step 2 of 3 dialog box, uncheck any existing Delimiters selections, check the Other checkbox, and then press the Ctrl + J shortcut. You can see that only a little dot is displayed in the textbox, then in the Data preview box, the texts are split by line breaks. Click the Next button.

A screenshot of the Step 2 of 3 dialog box in Excel with the Other delimiter selected and Ctrl + J entered

5. In the last step wizard, select a destination cell to output the separated texts, and then click the Finish button.

A screenshot of the final step of the Text to Columns Wizard in Excel, showing the destination cell selected

Then texts in the selected cells are split into different columns by line breaks.

Split cells by line break with formula

The following formulas can also help to split cells by line break in Excel.

Using the same example as above, after splitting, you will get three substrings in different columns.

Get the substring before the first line break

Firstly, we can apply a formula based on the LEFT and the SEARCH functions to split the substring before the first line break in the cell.

Generic formula

=LEFT(cell, SEARCH(CHAR(10),cell,1)-1)

Arguments

Cell: The text string cell where you want to split the substring before the first line break.

1. Select a blank cell (D5 in this case), copy or enter the below formula into it and press the Enter key. Select the result cell and drag its AutoFill Handle down to get the substrings before the first line break of other cells.

=LEFT(B5, SEARCH(CHAR(10),B5,1)-1)

A screenshot of the Excel sheet showing a formula for extracting a substring before the first line break

Get the substring between the first and second line breaks

To get the substring between the first and second line breaks in a cell, the following formula can do you a favor.

Generic formula

=MID(cell,SEARCH(CHAR(10),cell)+1,SEARCH(CHAR(10),cell,SEARCH(CHAR(10),cell)+1)-SEARCH(CHAR(10),cell)-1)

Arguments

Cell: The text string cell where you want to split the substring between the first and second line breaks.

1. Select a cell (E5) next to D5, copy or enter the below formula into it and press the Enter key. Select the result cell and drag its AutoFill Handle down to get the substrings between the first and second line breaks of other cells.

=MID(B5, SEARCH(CHAR(10),B5) + 1, SEARCH(CHAR(10),B5,SEARCH(CHAR(10),B5)+1) - SEARCH(CHAR(10),B5) - 1)

A screenshot of the Excel sheet showing a formula for extracting a substring between the first and second line breaks

Get the substring after the second line break

The first step is to get the substring after the second line break with the below formula.

Generic formula

=RIGHT(cell,LEN(cell) - SEARCH(CHAR(10),cell, SEARCH(CHAR(10), cell) + 1))

Arguments

Cell: The text string cell where you want to split the substring after the second line break.

1. Select a cell (F5 in this case), copy or enter the below formula into it and press the Enter key. Select the result cell and drag its AutoFill Handle down to get the substrings after the second line break of other cells.

=RIGHT(B5,LEN(B5) - SEARCH(CHAR(10), B5, SEARCH(CHAR(10), B5) + 1))

A screenshot of the Excel sheet showing a formula for extracting a substring after the second line break

Split cells by line break with VBA

This section provides a VBA code to help you easily split texts in selected cells by line break in Excel.

1. Press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window.

2. In the Microsoft Visual Basic for Applications window, click Insert > Module. Then copy the below VBA into the Code window.

VBA code: split cells by line break in Excel

Sub ExtendOffice_SplitRangeTex()
'Updated by Extendoffice 20211116
Dim xStr() As String
Dim xRg As Range
Dim xCell As Range
Dim xI As Integer
Set xRg = Application.InputBox("Please select the range of cells where you want to split by line break:", "Kutools for Excel", "", , , , , 8)
If xRg Is Nothing Then Exit Sub
For xI = 1 To xRg.Count
    Set xCell = xRg.Item(xI)
    xStr = VBA.Split(xCell.Value, vbLf)
    xCell.Resize(1, UBound(xStr) + 1).Offset(0, 1) = xStr
Next
End Sub

A screenshot of the Microsoft Visual Basic for Applications window showing VBA code to split cells by line breaks

3. Press the F5 key to run the code. Then a Kutools for Excel dialog box pops up, you need to select the range of cells where you want to split by line break, and finally click the OK button.

A screenshot of the Kutools for Excel dialog box with the range of cells selected to split by line break

Then texts in selected cells are split into different columns at once by line breaks.

A screenshot of the result after splitting cells by line break in Excel using Kutools

Split cells by line break with an amazing tool

Here, we introduce a handy tool – Split Cells utility of Kutools for Excel. With this tool, you can split texts in selected cells in bulk by line break with only several clicks.

1. Select the range of cells where you want to split the texts by line break.

2. Click Kutools > Merge & Split > Split Cells to enable the feature.

3. In the Split Cells dialog box, you need to make the following settings.

3.1) In the Split range box, keep the selected range or change to a new range;
3.2) In the Type section, choose Split to Rows or Split to Columns according to your needs;
3.3) In the Split by section, choose the New line radio button;
3.4) Click the OK button. See screenshot:

A screenshot of the Split Cells dialog box with settings to split by line breaks

4. In the next popping up Split Cells dialog box, select a blank cell to place the separated texts, and click OK.

A screenshot of the Split Cells dialog box with the destination cell selected

Then texts in the selected cells are split into different columns by line breaks as shown in the screenshot below.

A screenshot showing the result of splitting text by line breaks in Excel using Kutools

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now

Example #5 Split cells by the first or last delimiter only

Sometimes, you may need to split a cells into two parts by first or last delimiter only, you can try the below formulas.

Split cells by the first delimiter with formulas

As shown in the screenshot below, to split each cell in range B5:B9 into two parts by the first space, you need to apply two formulas.

A screenshot of splitting text by the first space in Excel

Split the substring before the first space

To split the substring before the first space, you can use a formula based on the LEFT function and the FIND functions.

Generic formula

=LEFT(cell,FIND("delimiter",cell)-1)

Arguments

Cell: The text string cell where you want to split the substring before the first space.
Delimiter: The delimiter used to split the cell.

1. Select a cell (D5 in this case) to output the substring, copy or enter the below formula into it and press the Enter key. Select the result cell and then drag its AutoFill Handle down to get the substring of other cells.

=LEFT(B5,FIND(" ",B5)-1)

A screenshot of the formula for splitting text before the first space in Excel

Split the substring after the first space

Then apply the below formula to get the substring after the first space in a cell.

Generic formula

=RIGHT(cell,LEN(cell)-FIND("delimiter",cell))

Arguments

Cell: The text string cell where you want to split the substring after the first space.
Delimiter: The delimiter used to split the cell.

1. Copy or enter the below formula into the cell E5 and press the Enter key to get the result. Select this result cell and drag its AutoFill Handle down to get the substring after the last space of other cells.

=RIGHT(B5,LEN(B5)-FIND(" ",B5))

A screenshot of the result for splitting text after the first space in Excel

Note: In the formulas, you can change the cell reference to the text string and the delimiter according to your needs.

Split cells by the last delimiter with formulas

To split texts in the range of cells (B5:B9) into two parts by the last space as shown in the screenshot, the two formulas provided in this section can help you get it done.

A screenshot of splitting text by the last space in Excel

Get the text to the left of the last delimiter

To get the text to the left of the last delimiter in a cell, you can apply the below formula.

Generic formula

=LEFT(B5,SEARCH("^",SUBSTITUTE(cell,"delimiter","^",LEN(cell)-LEN(SUBSTITUTE(cell,"delimiter",""))))-1)

Arguments

Cell: The text string cell where you want to split the text to the left of the last delimiter.
Delimiter: The delimiter used to split the cell.

1. Select a cell to place the left substring, copy or enter the below formula into it and press the Enter key. Select the result cell and drag its AutoFill Handle down to apply the formula to other cells.

=LEFT(B5,SEARCH("^",SUBSTITUTE(B5," ","^",LEN(B5)-LEN(SUBSTITUTE(B5," ",""))))-1)

A screenshot of the formula for splitting text before the last space in Excel

Get the text to the right of the last delimiter

Now we need to get the text to the right of the last space in this case.

Generic formula

=TRIM(RIGHT(SUBSTITUTE(cell,"delimiter",REPT("delimiter",LEN(cell))),LEN(cell)))

Arguments

Cell: The text string cell where you want to split the text to the right of the last delimiter.
Delimiter: The delimiter used to split the cell.

1. Select a cell to place the right substring, copy or enter the below formula into it and press the Enter key. Select the result cell and drag its AutoFill Handle down to apply the formula to other cells.

=TRIM(RIGHT(SUBSTITUTE(B5," ",REPT(" ",LEN(B5))),LEN(B5)))

A screenshot of the formula for splitting text after the last space in Excel

Note: In the formulas, you can change the cell reference to the text string and the delimiter according to your needs.

Example #6 Split cells by capital letter

This section introduces a user-defined function to split words in cells by capital letter.

A screenshot of splitting text by capital letter in Excel

1. Press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window.

2. In the Microsoft Visual Basic for Applications window, click Insert > Module, then copy the below VBA code into the Code window.

VBA code: Split cells by capital letter in Excel

Function GetName(s As String, Num As Long) As String
'Updated by Extendoffice 20211116
  With CreateObject("VBSCript.RegExp")
    .Global = True
    .Pattern = "[A-Z][a-z]+|[A-Z]"
    GetName = .Execute(s).Item(Num - 1)
  End With
End Function

3. Press the Alt + Q keys to close the Microsoft Visual Basic for Applications window.

4. Select a cell (D5 in this case) to output the word to the left of the first capital letter, enter the below formula into it and press the Enter key. Select this result cell and drag its AutoFill Handle right then down to get the other words.

=IFERROR(GetName($B5,COLUMNS($D:D)),"")

A screenshot of the result of splitting text by capital letter using VBA

Note: In the code, $B5 is the cell you will split, $D:D is the column of the result cell. Please change them according to your own data.

Example #7 Split names in cells

Supposing you have a worksheet containing a column of full names, and want to split the full name into separate columns such as split the first and last name from the full name, or split the first, middle or last name from the full name. This section lists detailed steps to help you solve these problems.

Split full name into first and last name

As shown in the screenshot below, the first name, middle name and the last name are separated by a single space, to split only the first name and last name from a full name and put them in different columns, you can apply one of the following methods.

A screenshot showing a column of full names to be split into separate columns for first and last names

1) Split full name into first and last name with formulas

You need to apply two formulas separately to split a full name into the first name and last name.

Split the first name from a full name

You can apply a formula based on the LEFT and the SEARCH functions to split the first name from a full name.

Generic formula

=LEFT(cell, SEARCH(" ", cell) - 1)

1. Select a cell to output the first name.

2. Copy or enter the below formula into it and press the Enter key. Select this result cell and drag its AutoFill Handle down to split the first names from other full names.

=LEFT(B5, SEARCH(" ", B5) - 1)

A screenshot of the formula used to split the first name from a full name in Excel

Now you have split all first names from the full names in specified range of cells, go ahead to apply the below formula to split the last names.

Split the last name from a full name

Generic formula

=RIGHT(cell, LEN(cell) - SEARCH("^", SUBSTITUTE(cell," ", "^", LEN(cell) - LEN(SUBSTITUTE(cell, " ", "")))))

1. Select a cell next to the first name cell.

2. Copy or enter the below formula into it and press the Enter key. Select this result cell and drag its AutoFill Handle down to get the last names from other full names.

=RIGHT(B5, LEN(B5) - SEARCH("^", SUBSTITUTE(B5," ", "^", LEN(B5) - LEN(SUBSTITUTE(B5, " ", "")))))

A screenshot of the formula used to split the last name from a full name in Excel

Note: In the formulas, B5 is the full name cell you want to split. You can change it as you need.

2) Split full name into first and last name with an amazing tool

Formula is hard to remember for many Excel users. Here, we recommend the Split Names feature of Kutools for Excel. With this feature, you can easily split full name into first and last name easily with only several clicks.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Select the range of full name cells, click Kutools > Merge & Split > Split Names.

A screenshot of the Split Names option in Kutools tab in Excel

2. In the Split Names dialog box, only check the First name and the Last name box in the Split types section, and then click OK.

Tips: The selected range is displayed in the Range to split box, you can change it as needed.

A screenshot showing the Split Names dialog box where First and Last Name are selected to be split

3. Then another Split Names dialog box pops up, select a destination cell and click OK.

A screenshot of the Split Names dialog box where the user selects a destination cell

Then the full name in the selected cells will be split into first name and last name in bulk as shown in the screenshot below.

A screenshot showing the results after splitting full names into first and last names in Excel using Kutools

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now

Split full name into first, middle and last name

As shown in the screenshot below, there is a full name column with first name, middle name and last name separated by a single space. To split the full name into first name, middle name and last name and put them in different columns, the below methods can help you.

A screenshot of a column containing full names with first, middle, and last names separated by spaces

1) Split full name into first, middle and last name with Text to Columns

The built-in feature – Text to Columns can help you easily split full name into first name, middle name and last name in Excel.

You can follow the steps mentioned above to apply the Text to Columns feature.

Note: In the Step 2 of 3 wizard, only check the Space box.

2) Split full name into first, middle and last name with formulas

You can also apply formulas to split a full name into first name, middle name and last name in Excel.

Generic formulas used to split full name

Split the first name

=LEFT(cell,SEARCH(" ", cell)-1)

Split the middle name

=MID(cell, SEARCH(" ", cell) + 1, SEARCH(" ", cell, SEARCH(" ", cell)+1) - SEARCH(" ", cell)-1)

Split the last name

=RIGHT(cell,LEN(cell) - SEARCH(" ",cell, SEARCH(" ",cell,1)+1))

Then apply the formulas in different cells to get the first name, middle name and last name.

1. In cell D5, enter the below formula and press the Enter key. Select this result cell and drag its AutoFill Handle down to get the first name of other full names.

=LEFT(B5,SEARCH(" ", B5)-1)

A screenshot of the formula used to split the first name from a full name into a separate column

2. Enter the below formula in cell E5 and press the Enter key to get the first middle name. Select the result cell and drag its AutoFill Handle down to get the other middle names.

=MID(B5, SEARCH(" ", B5) + 1, SEARCH(" ", B5, SEARCH(" ", B5)+1) - SEARCH(" ", B5)-1)

A screenshot of the formula used to split the middle name from a full name into a separate column

3. To get the last names, enter the below formula into cell F5 and press Enter, and then select the result cell and drag its AutoFill Handle over the cells you need.

=RIGHT(B5,LEN(B5) - SEARCH(" ",B5, SEARCH(" ",B5,1)+1))

A screenshot of the formula used to split the last name from a full name into a separate column

3) Split full name into first, middle and last name with an amazing tool

Here is an introduction to Kutools for Excel’s Split Names feature, which allows you to split a full name into first name, middle name and last name at once with just a few clicks.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Select the full name cells where you want to split, and then click Kutools > Merge & Split > Split Names.

2. In the Split Names dialog box, you need to configure as follows.

2.1) The selected range is displaced in the Range to split box, you can change it as needed;
2.2) In the Split types section, check the First name, Middle name, and the Last name boxes;
2.2) Click the OK button.

A screenshot of the Split Names dialog box where the first, middle, and last names are selected to be split

3. In the next popping up Split Names dialog box, select a destination cell to output the separated texts, and then click OK. See the below demo.

A GIF showing the Split Names feature in Kutools for Excel splitting full names into first, middle, and last names

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now

Example #8 Split text and numbers in cells

Supposing there is a list of text strings with mixed texts and numbers as shown in the screenshot below, to separate the text and numbers and put them in different columns, we provide four methods for you.

A screenshot showing a list of text strings containing both text and numbers

Split text and numbers with formulas

With the following formulas, you can split the text and numbers from one cell into two separated cells.

Generic formulas

Get text from cell

=LEFT(cell,MIN(FIND({0,1,2,3,4,5,6,7,8,9},cell&"0123456789"))-1)

Get numbers from cell

=RIGHT(cell,LEN(B5)-MIN(FIND({0,1,2,3,4,5,6,7,8,9},cell&"0123456789"))+1)

Then apply these two formulas in different cells to get the separate text and numbers.

1. Select a blank cell to place the text of the first text string in the list, copy or enter the formula below and press the Enter key. Select the result cell and drag its AutoFill Handle down to get the text of other text strings in the list.

=LEFT(B5,MIN(FIND({0,1,2,3,4,5,6,7,8,9},B5&"0123456789"))-1)

A screenshot showing the formula to extract text from a cell in Excel

2. Select a cell (E5) next to the first result cell (D5), copy or enter the formula below and press Enter. Select the result cell and drag its AutoFill Handle down to get the numbers of other text strings in the list.

=RIGHT(B5,LEN(B5)-MIN(FIND({0,1,2,3,4,5,6,7,8,9},B5&"0123456789"))+1)

A screenshot showing the formula to extract numbers from a cell in Excel

Split text and numbers with Flash Fill (2013 and later versions)

If you are using Excel 2013 or the later versions, you can apply the Flash Fill built-in to split text and numbers from one cell to two columns.

Note: To make the Flash Fill feature work, you need to locate the result columns next to the original text string column. For example, if the original text strings locate in column B, the separated text and numbers should place in column C and D. See screenshot:

A screenshot showing Excel's Flash Fill feature being used to split text and numbers into columns

1. Manually type the text of the first text string cell (D5) in cell C5.

2. Keep typing the text of the second text string cell (D6) in cell C6.

A screenshot showing manually typing the first example of split text in Excel

3. Activate the cell C7, click Data > Flash Fill.

A screenshot showing the Flash Fill option in Excel

Then the texts of other text strings are filled in the cells automatically as shown in the screenshot below.

A screenshot showing text filled automatically in Excel using Flash Fill

4. Repeat the step 1 to 3 to get the numbers in column D.

A screenshot showing the split numbers filled automatically in Excel using Flash Fill

Notes:

1) If your text strings are not regular, it may return wrong values. You can press the Ctrl + Z to undo the Flash Fill and then go to apply the other methods.
2) If Flash Fill doesn’t work, click File > Options. In the Excel Options window, click Advanced in the left pane, check the Automatically Flash Fill box in the Editing Options section, and then click OK.

A screenshot showing how to enable the Flash Fill feature in Excel options

Split text and numbers with User-defined Function

If the text strings in a list are not regular, the above two methods may return wrong results as shown in the screenshot below.

A screenshot showing incorrect results from using Flash Fill in Excel with irregular data

Here, we introduce a user-defined function to help you split text and numbers from a cell into two columns no matter where the numbers are located in the text string. See screenshot:

A screenshot showing correct results using a user-defined function in Excel to split text and numbers

1. Press the Alt + F11 keys.

2. In the opening Microsoft Visual Basic for Applications window, click Insert > Module, and then copy the below VBA into the Code window.

VBA code: Split text and numbers from a cell into two columns

Public Function SplitText(pWorkRng As Range, pIsNumber As Boolean) As String
'Update by Extendoffice 20211105
Dim xLen As Long
Dim xStr As String
xLen = VBA.Len(pWorkRng.Value)
For i = 1 To xLen
    xStr = VBA.Mid(pWorkRng.Value, i, 1)
    If ((VBA.IsNumeric(xStr) And pIsNumber) Or (Not (VBA.IsNumeric(xStr)) And Not (pIsNumber))) Then
        SplitText = SplitText + xStr
    End If
Next
End Function

A screenshot showing the Microsoft Visual Basic for Applications window

3. Press the Alt + Q keys to close the Microsoft Visual Basic for Applications window.

4. Select a cell to output the text of the first text string, enter the below formula and press the Enter key. Select this result cell and drag its AutoFill Handle down to get the text of other text strings in the same list.

=SplitText(B5,FALSE)

A screenshot showing the formula used to extract text using a user-defined function in Excel

5. Select a cell next to the first text result cell to output the numbers, enter the below formula and press the Enter key. Select this result cell and drag its AutoFill Handle down to get the numbers of other text strings.

=SplitText(B5,TRUE)

A screenshot showing the formula used to extract numbers using a user-defined function in Excel

Split text and numbers with an amazing tool

Here, we recommend the easiest way to split text and numbers at once from a cell into two columns. Applying the Split Cells feature of Kutools for Excel helps you to handle this problem with only a few clicks.

1. Select the text string cells where you want to split the text and numbers into two columns.

2. Click Kutools > Merge & Split > Split Cells.

3. In the Split Cells dialog box, you need to do the following settings.

3.1) The selected range is listed in the Split range box, and you can click the Range selection button button to select a new range as needed;
3.2) In the Type section, choose Split to Rows or Split to Columns;
3.3) In the Split by section, select the Text and number radio button;
3.4) Click the OK button.

A screenshot showing the Split Cells dialog box settings

4. In the next Split Cells dialog box, select a cell to output the separated text and numbers, and then click the OK button.

Then you can see the text and numbers in selected cells are split into two columns at once as shown in the screenshot below.

A screenshot showing the result after splitting text and numbers into two columns in Excel using Kutools

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


2. Split number cells

This part describes how to split number cells in two situations: splitting a number with more than one digits into individual digits and splitting number at decimal to separate the integer and decimal portions.

Example #1: Split cells by digits

If you want to split a number with more than one digits into individual digit in different columns, try one of the below methods.

A screenshot showing the method of splitting a number into individual digits in Excel with multiple columns

Split a number in a cell into individual digits with formula

The below formula can help to split a number into individual digits and put them in different columns.

Generic formula

=MID($A1, COLUMNS($A$1:A$1), 1)

Argument

A1: Represents the cell containing a number you want to split into individual digits.

1. Select a blank cell to output the first digit, enter the below formula and press the Enter key.

=MID($B3, COLUMNS($B$3:B$3), 1)

2. Select this result cell and drag its AutoFill Handle right to the cells to get other digits. Keep all the result cells selected, and then drag the AutoFill Handle down to get the individual digits of other numbers.

A screenshot showing the result of splitting a number into individual digits in Excel

Note: In this formula, B3 is the cell containing the number to split into individual digits, and you can change it as needed.

Split a number in a cell into individual digits with VBA

The VBA code below can also help to split a number in a cell into individual digits in Excel. You can do as follows.

1. Press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window.

2. In the Microsoft Visual Basic for Applications window, click Insert > Module, and then copy the VBA below into the Code window.

VBA code: split number into individual digits in Excel

Sub SplitNumberIntoDigits()
'Updateby Extendoffice 2021118
Dim Rng As Range
Dim InputRng As Range, OutRng As Range
xTitleId = "Kutools for Excel"
Set InputRng = Application.Selection
Set InputRng = Application.InputBox("Range :", xTitleId, InputRng.Address, Type:=8)
Set OutRng = Application.InputBox("Out put to (single cell):", xTitleId, Type:=8)
 xInt = InputRng.Row

Application.ScreenUpdating = False

For Each Rng In InputRng
    xValue = Rng.Value
    xRow = (Rng.Row - xInt) + 1
    For I = 1 To VBA.Len(xValue)
        OutRng.Cells(xRow, I).Value = VBA.Mid(xValue, I, 1)
    Next
Next
Application.ScreenUpdating = True
End Sub

A screenshot of the Microsoft Visual Basic for Applications window showing VBA code for splitting numbers into individual digits

3. Press the F5 key to run the code, then a Kutools for Excel dialog box pops up, you need to select the range of number cells you will split and then click the OK button.

A screenshot of the Kutools for Excel dialog box used to select a range of number cells to split

4. The second Kutools for Excel dialog box pops up, you need to select a cell to output the individual digits, and then click OK.

A screenshot of the Kutools for Excel dialog box used to select the cell for output when splitting number cells into digits

Note: This code can split a word into individual letters as well.

Then numbers in selected cells are split into individual digits and place in different columns.

A screenshot showing the result of splitting number cells into individual digits using Kutools

Easily split a number into individual digits with an amazing tool

Kutools for Excel’s Split Cells feature is a handy tool to help you easily split number into individual digits in Excel.

1. After installing Kutools for Excel, select the range of number cells you will split, click Kutools > Merge & Split > Split Cells.

2. In the Split Cells dialog box, do the following settings.

2.1) In the Split range section, you can see the range you selected displayed in the text box. You can click the Range selection button button to change the range as you need;
2.2) In the Type section, choose Split to Rows or Split to Columns according to your needs;
2.3) In the Split by section, select the Specify width radio button, enter the number 1 into the text box;
2.4) Click the OK button.

A screenshot of the Split Cells dialog box with the option to split cells into rows or columns

3. In the opening Split Cells dialog box, select a blank cell to output the digits, and then click the OK button.

A screenshot of the Split Cells dialog box with the output destination for individual digitsb

Then numbers in selected cells are split into individual digits at once.

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now

Example #2 Split number at decimal

This section discusses a few methods to split a number into integer and decimal portions in Excel.

A screenshot of a sample table showing number cells to split at decimals

Split number at decimal with formulas

The TRUNC function can be applied to split a number at decimal in Excel. You can do as follows.

Generic formulas

Get the integer portion

=TRUNC(A1)

Get the decimal portion

=A1-TRUNC(A1)

Argument

A1: Represents the cell you want to split at decimal.

Now you can apply these two formulas to split numbers in a specified range of cells at decimal in Excel.

1. Select a cell to place the integer part of the first number cell, enter the formula below and press the Enter key. Select the result cell and drag its AutoFill Handle down to get the integers of other number cells.

=TRUNC(B5)

A screenshot of the result after splitting a number into integer portion using the TRUNC function

2. Select a cell next to the first result cell to place the decimal part, enter the formula below and press the Enter key. Select this result cell and drag its AutoFill Handle down to get the decimals of other number cells.

=B5-TRUNC(B5)

A screenshot of the result after splitting a number into decimal portion using the TRUNC function

Split number at decimal with Text to columns

You can apply the Text to Columns feature to split number at decimal in Excel.

1. Select the range of number cells you will split at decimal, and then click Data > Text to Columns.

2. In the Convert Text to Columns Wizard – Step 1 of 3 dialog box, select the Delimited radio button and click the Next button.

A screenshot of the 'Step 1 of 3' dialog box of the Text to Columns feature in Excel, with the 'Delimited' radio button selected

3. In the Step 2 of 3 dialog box, only check the Other checkbox, enter a dot into the textbox, and then click the Next button.

A screenshot of the 'Step 2 of 3' dialog box of the Text to Columns feature in Excel, with the 'Other' checkbox selected and a dot entered

4. In the Step 3 of 3 dialog box, click the Range selection button button to select a destination cell to output the split integers and decimals, and finally click the Finish button. See screenshot:

A screenshot of the 'Step 3 of 3' dialog box of the Text to Columns feature in Excel, with the destination cell selected

Then you can see that the integer and decimal parts are split from selected cells as shown in the screenshot below. However, the decimal part loses its negative sign which might be necessary for the user.

A screenshot of the result after splitting a number into integer and decimal parts using Text to Columns, showing a negative decimal issue

Split number at decimal with Flash Fill (2013 and later versions)

In the example above we introduced the use of the Flash Fill function to split text and numbers in cells, and here we will introduce the same method to split number at decimal.

1. Enter a couple of examples. In this case, we enter the integer part of B5 in C5, enter the integer part of B6 in C6. See screenshot:

Note: For negative numbers, don’t forget to enter the minus sign together.

A screenshot of the Flash Fill method being applied to extract the integer portion of a number in Excel

3. Select the cells including the couple of examples in the column you want filled in, go to click Data > Flash Fill.

A screenshot of the Flash Fill option in Excel

Then integers are extracted from the specified number cells as shown in the screenshot below.

A screenshot showing the extracted integer portion after using Flash Fill on number cells in Excel

4. Repeat the steps above to split decimals from the same number cells.

A screenshot showing the extracted decimal portion after using Flash Fill on number cells in Excel


3. Split date cells

Another frequently encountered situation is to split date cells. If you need to split date cells into separate day, month and year, or split date cells into separate date and time, use the following solution depending on your needs.

Example #1 Split date cells into separate day, month and year

Assuming that you have a list of dates in range B5:B9, and want to split each date value into three separate columns for day, month and year. Here are three methods to help you achieve the result of splitting dates.

A screenshot of a list of date cells in Excel, showing an example of date values in column B5:B9

Split date cells into day, month and year with formulas

You can apply three formulas based on the DATE function, MONTH function and YEAR function to split a date into separate day, month and year in Excel.

Generic formulas

=DATE(A1)

=MONTH(A1)

=YEAR(A1)

Argument

A1: Represents the date cell you want to split into separate day, month and year.

1. Create three columns to place the separate day, month and year.

2. Select the first cell in the Day column, enter the formula below and press the Enter key to get the day of the first date cell (B5). Select this result cell and drag its AutoFill Handle down to get the days of other date cells.

=DAY(B5)

A screenshot of a formula in Excel to extract the day from a date, using the DAY function in the Day column

3. Do the same operation as step 1 to apply the following formulas in the Month and Year column to get the separate month and year from the date cells.

Get the month of a date

=MONTH(B5)

A screenshot of a formula in Excel to extract the month from a date, using the MONTH function in the Month column

Get the year of a date

=YEAR(B5)

A screenshot of a formula in Excel to extract the year from a date, using the YEAR function in the Year column

Split date cells into day, month and year with Text to Columns

You can follow the steps above to apply the Text to Columns feature to split date cells into separate day, month and year in Excel.

Note: In the Step 2 of 3 dialog box, only check the Other box, and type a / symbol in the text box.

A screenshot of the 'Text to Columns' dialog box in Excel, with the 'Other' option checked and a slash (/) symbol entered to split date cells

Split date cells into day, month and year with an amazing tool

The below demo demonstrates how to split date into separate month, day and year with the Split Cells feature of Kutools for Excel.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

This feature helps you to achieve the result of splitting dates in bulk with only several clicks.

Click to know more about this feature.

A screenshot of a gif showing the Split Cells feature, splitting date cells into day, month, and year

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now

Example #2 Split date and time in a cell

Supposing there is a date time list in B5:B9, and you want to split the dates and times into separate columns, this section will demonstrate different ways to help you get it done.

A screenshot of a list of date-time cells in Excel, showing examples of dates and times in column B5:B9

Split date and time in a cell with formula

You can apply the following formulas to split date and time into different columns in Excel.

1. Prepare two columns to place the dates and times.

2. You need to set the date column cells to Date format, and set the time column cells to Time format.

1) Select the date range, right click and select Format Cells from the context menu. In the Format Cells dialog box, select Date in the Category box, select any date format you need in the Type box, and then click OK to save the changes.

A screenshot of the Format Cells dialog box in Excel, with the Date category selected to format a date column

2) Select the time range, right click and select Format Cells from the context menu. In the Format Cells dialog box, select Time in the Category box, select any time format you need in the Type box, and then click OK to save the changes.

A screenshot of the Format Cells dialog box in Excel, with the Time category selected to format a time column

3. Select the first cell in the Date column, enter the formula below and press the Enter key to get date of B5. Select this result cell and drag its AutoFill Handle down to get the other dates.

=INT(B5)

A screenshot of an Excel formula to extract the date portion from a date-time value, using the INT function

4. Apply the following formula in the time column to get the times in B5:B9.

=B5-D5

A screenshot of an Excel formula to extract the time portion from a date-time value, using the formula =B5-D5

Split date and time in a cell with Flash Fill (2013 and later versions)

If you are using the Excel 2013 and the later versions, you can apply the built-in Flash Fill feature to split date and time into different columns.

1. Create the Date and Time columns and enter a couple of examples you want as output. In the Date column, we enter the date of B5 in C5, and enter the date of B6 in C6. In the Time column, we enter the time of B5 in D5 and enter the time of B6 in D6. See screenshot:

A screenshot showing examples of date and time values entered manually in Excel columns for Flash Fill to split them

2. Select the Date column (including the couple of examples) you want filled in, go to click Data > Flash Fill.

3. Select the Time column (including the couple of examples) you want filled in, and then enable the Flash Fill feature as well. Then dates and times in B5:B9 are split into separate columns as shown in the demo below.

A screenshot of a gif demonstrating Excel's Flash Fill feature automatically splitting date and time values into separate columns

Now, you have learned how to split cells in Excel with different methods in different situations. You will be able to make the best decision to determine which method you choose comes down to your specific scenario.

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!