+ Reply to Thread
Results 1 to 8 of 8

Excel 2010, needing help Separating lines of characters into columns = #'s and letters

Hybrid View

  1. #1
    Registered User
    Join Date
    07-01-2015
    Location
    Kansas City, Missouri
    MS-Off Ver
    2010
    Posts
    5

    Excel 2010, needing help Separating lines of characters into columns = #'s and letters

    What im needing to accomplish with this task is taking a series of alphanumeric text and either separate them into 2 columns, one of numbers and one of letters.

    For example:

    0072545SN
    0081558SN
    0081986SN
    0082014SN

    I need to get this into columns like:
    0072545 SN
    0081558 SN
    0081986 SN
    0082014 SN

    OR alternatively, my end game is I need to get The letters in front of the numbers a la a prefix rather than a suffix.

    Any ideas on how to do this as painlessly as possible?

  2. #2
    Registered User
    Join Date
    01-13-2015
    Location
    Leicester, England
    MS-Off Ver
    2013
    Posts
    42

    Re: Excel 2010, needing help Separating lines of characters into columns = #'s and letters

    If your combination of numbers and text is always the same, 7 numbers and 2 letters, use this:

    =RIGHT(A1,2)&LEFT(A1,7)
    and apply to the entire column.

    Alex

  3. #3
    Registered User
    Join Date
    07-01-2015
    Location
    Kansas City, Missouri
    MS-Off Ver
    2010
    Posts
    5

    Re: Excel 2010, needing help Separating lines of characters into columns = #'s and letters

    Hmm. That is helpful for some but not all. I should have included a greater number of examples. here's a more all encompassing sample:

    0072545SN
    0081558SN
    0081986SN
    0082014SN
    011238-002UR
    011709-004UR
    012798-000U
    012798-000UR
    012798-001UR
    012979-000UR
    0140011JL
    0140011U
    0140030JL
    0140030U
    015772-001UR
    015941-001U
    015941-001UR
    015941-002UR
    0180846SN
    0181847JL
    0252532JL
    0253100SJL
    0253100SU
    0253100U

  4. #4
    Registered User
    Join Date
    01-13-2015
    Location
    Leicester, England
    MS-Off Ver
    2013
    Posts
    42

    Re: Excel 2010, needing help Separating lines of characters into columns = #'s and letters

    Try this:

    =IF(ISERROR(MID(RIGHT(A2,2),1,1)+1),RIGHT(A2,2)&LEFT(A2,LEN(A2)-2),RIGHT(A2,1)&LEFT(A2,LEN(A2)-1))
    This is still dependent on the combination having 1 or 2 letters at the end and not more.

    Alex

  5. #5
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Excel 2010, needing help Separating lines of characters into columns = #'s and letters

    Hi, see if the attached helps.

    Kind regards,
    berlan
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-01-2015
    Location
    Kansas City, Missouri
    MS-Off Ver
    2010
    Posts
    5

    Re: Excel 2010, needing help Separating lines of characters into columns = #'s and letters

    Quote Originally Posted by berlan View Post
    Hi, see if the attached helps.

    Kind regards,
    berlan
    I was able to use these formulas combined with the text to columns command and then a simple "A2&B2" combo to get exactly what I need

    Thanks everybody for the help!

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Excel 2010, needing help Separating lines of characters into columns = #'s and letters

    I cobbled this together and it might work for you.
    Formula: copy to clipboard
    =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},""))))&" "&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 someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,745

    Re: Excel 2010, needing help Separating lines of characters into columns = #'s and letters

    Another possibility?
    Formula: copy to clipboard
    =RIGHT($A1,LEN($A1)-LOOKUP(2,1/ISNUMBER(--MID($A1,ROW($1:$30),1)),ROW($1:$30)))&LEFT($A1,LOOKUP(2,1/ISNUMBER(--MID($A1,ROW($1:$30),1)),ROW($1:$30)))
    Attached Files Attached Files
    Dave

+ 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. Separating string of letters/numbers in one cell
    By DF001 in forum Excel General
    Replies: 13
    Last Post: 06-26-2015, 09:23 AM
  2. Replies: 1
    Last Post: 01-29-2015, 12:36 PM
  3. Excel 2010 Separating 6 digit number into 6 cells per row
    By Michael_GR in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-03-2013, 10:05 AM
  4. [SOLVED] Separating lines from multi-line Excel cell
    By ymredzu in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-24-2013, 11:42 AM
  5. Lines separating rows and columns won't unhide
    By phossils@gmail.com in forum Excel General
    Replies: 3
    Last Post: 11-02-2005, 06:17 PM

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