+ Reply to Thread
Results 1 to 7 of 7

Extracting Letters and Numbers in a random Alphanumeric String

  1. #1
    Registered User
    Join Date
    12-29-2009
    Location
    Perth, Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    7

    Smile Extracting Letters and Numbers in a random Alphanumeric String

    Hi All,

    I've got this problem: I need to separate around 40 alphanumerical entry in Column'A' to Columns'B','C','D','E'..

    So, my Column'A' looks like,

    A
    1 5222208
    2 T_5222213
    3 522MN2207
    4 TCM

    And, I need the solution as, Column'A' -> Column'B' | Column'C' | Column'D' | Column'E'

    i.e,

    5222208 -> 5222208
    T_5222213 -> T_ | 5222213
    522MN2207 -> 522 | MN |2207
    TCM -> TCM
    A_522FOV1808 -> A_ | 522 | FOV | 1808
    522DV2211 -> 522 | DV |2211

    I read previous Threads and found no solution to this.

    Please suggest.

    Sanjay
    Last edited by rajbhar_s; 01-04-2010 at 12:18 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Extracting Letters and Numbers in a random Alphanumeric String

    could use someting like
    Please Login or Register  to view this content.
    to delimite the text then split it up
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Extracting Letters and Numbers in a random Alphanumeric String

    or all togeather
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: Extracting Letters and Numbers in a random Alphanumeric String

    Hi Sanjay

    Assuming the values in a contiguous range in A1, down, try:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-29-2009
    Location
    Perth, Australia
    MS-Off Ver
    Microsoft Office 365
    Posts
    7

    Re: Extracting Letters and Numbers in a random Alphanumeric String

    Thanks a million Guys!!!!!

    Pikes trick worked well!!

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Extracting Letters and Numbers in a random Alphanumeric String

    Hey rajbhar_s can you please mark the post solved?

  7. #7
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Extracting Letters and Numbers in a random Alphanumeric String

    This is better using the match collection
    Please Login or Register  to view this content.
    Last edited by pike; 01-03-2010 at 11:22 PM. Reason: "(\d+)|([a-zA-Z+]+)"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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