+ Reply to Thread
Results 1 to 6 of 6

Split based on letters and numbers

  1. #1
    Registered User
    Join Date
    06-28-2012
    Location
    Shawano, WI
    MS-Off Ver
    MS365 version 2310
    Posts
    98

    Split based on letters and numbers

    Hello,

    I would like to be able to split a column of data into two columns of data with the letters going into one column and the numbers going into a different column. The issue that I am running into is that the letters are always 2 digits, so I can use the left function but the numbers will vary in length. See examples below.

    FR3592049899
    FR3588043313
    PL015020206821
    PL015062430536
    NL177227327
    NL177227327
    PL015062430536
    PL015020207602
    DE1015228641
    PL015020206821
    FR2998012662
    PL015062430536

    If I received this data in column A I would like to split the letters into Column B and the numbers into Column C.

    Any thoughts or help on this will be greatly appreciated.

    Kind Regards

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Split based on letters and numbers

    You can use LEFT function for letters and SUBSTITUTE for numbers

    =LEFT(A1,2)

    =SUBSTITUTE(A1,B1,"")

    Row\Col
    A
    B
    C
    1
    FR3592049899 FR 3592049899
    2
    FR3588043313 FR 3588043313
    3
    PL015020206821 PL 015020206821
    4
    PL015062430536 PL 015062430536
    5
    NL177227327 NL 177227327
    6
    NL177227327 NL 177227327
    7
    PL015062430536 PL 015062430536
    8
    PL015020207602 PL 015020207602
    9
    DE1015228641 DE 1015228641
    10
    PL015020206821 PL 015020206821
    11
    FR2998012662 FR 2998012662
    12
    PL015062430536 PL 015062430536
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Split based on letters and numbers

    You could also use Data - Text To Columns - Fixed Width

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Split based on letters and numbers

    If your data will ALWAYS begin with 2 letters followed by numbers
    This approach will parse the data into 2 columns, beginning in Col_B
    • Select your single column list of values
    • Data.Text-to-columns
    ...Select: Fixed width.............................Click: Next
    ...Insert a break after the second letter....Click: Next
    ...Set the destination to a cell in Col_B (example: B1)
    ...Click: Finish

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Split based on letters and numbers

    Or use this formula for the numbers:
    =RIGHT(A1,LEN(A1)-2)
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Split based on letters and numbers

    Here's another option without having to use formulas.

    If the data is in column A make sure column B is empty to accept the parsed data.

    Select the data in question
    Goto the Data tab>Text to Columns
    Select: Fixed Width>Next
    In the Data Preview section click between the 2nd and 3rd characters and a split line will appear
    Click Next
    Click on General above the numbers column
    Select: Text from the Column Data Format area
    Click Finish
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 11
    Last Post: 10-16-2013, 10:21 PM
  2. Split cells based on letters vs. numbers
    By jvegastn in forum Excel General
    Replies: 11
    Last Post: 09-13-2013, 01:03 AM
  3. [SOLVED] Split Cells Based On Letters and Numbers
    By spoorthi.bh in forum Excel General
    Replies: 2
    Last Post: 05-20-2013, 05:35 AM
  4. Split cells based on Capital Letters
    By AntyLani in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2013, 11:24 AM
  5. split stringer in letters and numbers
    By iscar_marius in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-07-2010, 03:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1