+ Reply to Thread
Results 1 to 7 of 7

Separate numeric/text combination into two separate columns.

  1. #1
    Forum Contributor
    Join Date
    08-15-2005
    Location
    Oklahoma
    MS-Off Ver
    2010, 2013
    Posts
    112

    Smile Separate numeric/text combination into two separate columns.

    How can I separate the following numeric/text combination into two (2) separate columns in Excel?

    302ALTO
    406AMZN
    451AMRC
    404AMAD
    605ANCC
    405ADRC

    The result would be:

    302 ALTO
    406 AMZN
    451 AMRC
    404 AMAD
    605 ANCC
    405 ADRC
    Jim15

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Separate numeric/text combination into two separate columns.

    You can use Data | Text-to-columns, with a fixed width for the first field of 3 characters.

    Hope this helps.

    Pete

  3. #3
    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: Separate numeric/text combination into two separate columns.

    Use this to get the numbers out:

    =MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),SUM(LEN(A1)-LEN(SUBSTITUTE(A1,{0,1,2,3,4,5,6,7,8,9},""))))

    Use this to get the text:

    =SUBSTITUTE(A1,MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),SUM(LEN(A1)-LEN(SUBSTITUTE(A1,{0,1,2,3,4,5,6,7,8,9},"")))),"")
    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

  4. #4
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Separate numeric/text combination into two separate columns.

    to get the number (any digits)
    =LEFT(A1,SUMPRODUCT((ISNUMBER(--MID(A1,ROW($1:$10),1))*1)))
    to get the text
    =SUBSTITUTE(A1;LEFT(A1;SUMPRODUCT((ISNUMBER(--MID(A1;ROW($1:$10);1))*1)))

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Separate numeric/text combination into two separate columns.

    Well, we can only go off the examples you have given, which all show 3 numeric digits. If your data is all like that then you can put this in B1:

    =LEFT(A1,3)*1

    where the *1 will convert the text values into numbers - omit that if not required.

    Then in C1 you can have this:

    =SUBSTITUTE(A1,B1,"")

    Copy both down as far as you need to.

    If you want only those two columns, then fix the values in columns B and C using copy | paste special | values | OK then <Esc>, and then delete column A.

    Hope this helps.

    Pete

  6. #6
    Forum Contributor
    Join Date
    08-15-2005
    Location
    Oklahoma
    MS-Off Ver
    2010, 2013
    Posts
    112

    Re: Separate numeric/text combination into two separate columns.

    Thank you all!

  7. #7
    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: Separate numeric/text combination into two separate columns.

    You're welcome. Don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ 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. [SOLVED] Need help to separate numeric values into separate cells (LEFT and RIGHT won't work)
    By RichMcc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2013, 07:48 PM
  2. [SOLVED] how to separate last numeric character whice is separate by "-"
    By nur2544 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-22-2013, 08:32 AM
  3. Replies: 10
    Last Post: 03-08-2012, 12:31 PM
  4. Formula to separate text from alpha numeric codes
    By Greed in forum Excel General
    Replies: 2
    Last Post: 02-17-2012, 03:48 PM
  5. How to Separate Chunks of Characters and put them in separate Columns
    By crisshinn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-08-2011, 10:16 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