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 separate text and numbers from one cell into two columns?

If you have a column of text strings which are composed of text and numbers, now, you would like to separate the text and numbers from one cell into two different cells as following screenshot shown. In Excel, you can finish this task with these methods.


Split or Separate text strings into individual text and number columns:

Kutools for Excel's Split Cells feature is a powerful tool, it can help you to split cell values into multiple columns or rows, it also can help you to slit alphanumeric strings into separated text and numbers columns, etc… Click to download Kutools for Excel!

doc split text number 16
Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • 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.

Method 1: Separate text and numbers with formulas in Excel

With the following formulas, you can extract the text and numbers from the cell into two separated cells. Please do as follows:

1. Enter this formula into a blank cell – C3 where you want to place the result: =LEFT(A3,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A3&"0123456789"))-1), (A3 is the cell which contains the text string you want to separate), and then press Enter key to get only the text from the cell A2. See screenshot:

doc split text number 2

2. And then you can extract the numbers from the cell by applying this formula: =RIGHT(A3,LEN(A3)-MIN(FIND({0,1,2,3,4,5,6,7,8,9},A3&"0123456789"))+1),( A3 is the cell which contains the text string you want to separate), enter this formula into cell D3 which you want to place the numbers, and press Enter key, then you will get the numbers as this:

doc split text number 3

3. Then select cell C3:D3, and drag the fill handle over to the cells that you want to contain these formulas, and you can see the text and numbers have been separated into different cells:

doc split text number 4


Method 2: Separate text and numbers with Flash Fill in Excel 2013 and later version

With the above formulas, you just can separate the text and numbers if the text is before the numbers. To separate the text string which number is before the text, you can use the Flash Fill feature of Excel 2013 and later version.

If you have Excel 2013 and later version, the Flash Fill feature may help you to fill the text in one column and numbers in another column, please do as this:

1. Type the numbers of your first text string completely into adjacent blank cell - B3, see screenshot:

doc split text number 5

2. And then select the range B3:B7 where you want to fill the numbers, and click DATA > Flash Fill, and only the numbers have been filled in the cells at once, see screenshot:

doc split text number 6

3. Then enter the text string completely into cell C3, see screenshot:

doc split text number 7

4. And select the cell range C3:C7 where you want to fill the text only, click DATA > Flash Fill as well as step 2, and you can see, the text has been separated as follows:

doc split text number 8

Tip: You also can drag the filled handle to the range you want to use, and then click Auto Fill Option and check Flash Fill.

doc split text number 9

Method 3: Separate text and numbers which are mixed irregular with User Defined Function

If you have some text string which are mixed text and numbers irregularly like following data shown, Excel does not support the general feature to solve this problem, but, you can create User Defined Function to finish this.

doc split text number 17

1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following code in the Module Window.

VBA code: separate text and numbers into different cells from one cell

Public Function SplitText(pWorkRng As Range, pIsNumber As Boolean) As String
'Updateby Extendoffice
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

3. Then save and close this code, go back to the worksheet, enter this formula =SplitText(A3,FALSE) into a blank cell to get the only the text string and then drag the fill handle down to the cells that you want to fill this formula, see screenshot:

doc split text number 10

4. And thne, type formula =SplitText(A3,TRUE) into another cell and drag the fill handle down to the cells that you want to fill this formula to get the numbers, see screenshot:

doc split text number 11

Note: The result will be incorrect if there are decimal numbers in the text string.


Method 4: Separate text and numbers into two columns with Kutools for Excel

If you have Kutools for Excel, with its powerful tool- Split Cells utility, you can quickly split the text strings into two columns: one is number, and another is text.

After installing Kutools for Excel, please do as follows:

1. Select the data range that you want to separate the text and number.

2. Then click Kutools > Text > Split Cells, see screenshot:

doc split text number 12

3. In the Split Cells dialog box, select Split to Columns option under the Type section, and then check Text and number from the Split by section, see screenshot:

doc split text number 13

4. Then click Ok button, and a prompt box will pop out to remind you to select a cell to output the result, see screenshot:

doc split text number 14

5. Click OK button, and the text strings in the selection have been separated into two columns as following screenshot shown:

doc split text number 15

Click Download Kutools for Excel and free trial Now!


Separate text and numbers with Kutools for Excel

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Related articles:

How to split word into separate letters in Excel?

How to split cells into multiple columns or rows by carriage return?


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.
    Naeem Zafar · 5 months ago
    how to separate number and letters (1122AB). I tried the upper formula but its not working with me. anybody help me in this regard. Thanks in advance
    • To post as a guest, your comment is unpublished.
      skyyang · 4 months ago
      Hello, Naeem,
      The above formula only works if the text is before the numbers, your numbers before the text, so i recommend the second and third method for you!
      Please try, hope it can help you!
  • To post as a guest, your comment is unpublished.
    Hay · 8 months ago
    kereeeennn... berhasil....
  • To post as a guest, your comment is unpublished.
    AM · 10 months ago
    Thanks worked for Alpha-numeric cell data [ =RIGHT(A2,LEN(A2)-MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))+1)]
  • To post as a guest, your comment is unpublished.
    Gowtam Roopun · 11 months ago
    Hello Can anyone help me? I want to remove this zero and braceket by an excel formula.
    1 BR PE-0.50CT(H SI2)- -0.00( )-2 SP PE-0.50CT(H SI1)-1 RU PE-0.40CT(H-SI)-750GF-RG-RING-25-40-2.50GM


    Gowtam
  • To post as a guest, your comment is unpublished.
    RAJ · 11 months ago
    VERY USEFUL FORMULA I LIKE IT.
  • To post as a guest, your comment is unpublished.
    Sarashwaty · 1 years ago
    Hi.... Thank you for sharing, it is very helpful and save lots of time for me.
    Regards,
    Saras.
  • To post as a guest, your comment is unpublished.
    mahsa s · 1 years ago
    Hi,
    I'm trying to split these values HarryJack 22 3,66 335,77 44,77 into two columns which I can only have text in one column and 22 in the second column.
  • To post as a guest, your comment is unpublished.
    yuvraj · 1 years ago
    11247, 11322, 11323, 11324, 11325, 11326, 11332, 11337
    11247, 11322, 11323, 11324, 11325, 11326, 11332, 11337
    11247, 11322, 11323, 11324, 11325, 11326, 11332, 11337
    11248, 11249, 11250, 11322, 11323, 11324, 11325, 11326, 11332, 11337
    11248, 11322, 11323, 11324, 11325, 11326, 11332, 11337 how to separate above numbers in different cell with same number
    • To post as a guest, your comment is unpublished.
      S · 10 months ago
      Text to coloum with , separated format.
  • To post as a guest, your comment is unpublished.
    sagar chutiya · 1 years ago
    laure ka baal ,madarjaat
    • To post as a guest, your comment is unpublished.
      Baba · 2 months ago
      Mind your language sagar ch*tiya...

      This is a professional site and professional members.


      If your don't control your abusive and vulgar language then I will just cut-off your tongue.


      Thank You!!!
  • To post as a guest, your comment is unpublished.
    Bhavesh Desai · 1 years ago
    Super useful. Thank you very much. You saved my time!
  • To post as a guest, your comment is unpublished.
    vemky · 2 years ago
    20161021-014340_3125013233_OUTUS_agent012-all.mp3


    how to sperate this all in diffrent colums
  • To post as a guest, your comment is unpublished.
    Raju · 2 years ago
    can you help my in this question (SEONI-MALWA734274SEONIMALWA ) i want to split only number by formula . I tried many time but i split only 734274SEONIMALWA
    so if you have any formula then help me
  • To post as a guest, your comment is unpublished.
    AARON GABRIEL · 3 years ago
    Hey,
    I want to split this cell which contains (TI_122006001550)
    Now my aim is to omit the Everything else on that and keep only 122006
    Please help me generate a formula for this
    Would be great
    Thanks
  • To post as a guest, your comment is unpublished.
    shaker · 3 years ago
    Thanks for your valuable info.if it is possible can plz explain it briefly.
    This is the data like which i have in E column i want only number whether its starting or middle or last i want numeric number.can you provide code this kind of data
    Appreciate your help
    [b]BILL ID :AHM CLG 150236 SBI
    REDDY AGENCIES \HDF \000349
    DINAJPUR BEEJ \AXI \055313[/b]



    Public Function SplitText(pWorkRng As Range, pIsNumber As Boolean) As String
    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
  • To post as a guest, your comment is unpublished.
    sunny · 3 years ago
    thanks a lot. was very helpful. saved lots of time