+ Reply to Thread
Results 1 to 3 of 3

Formula to separate text from alpha numeric codes

  1. #1
    Forum Contributor
    Join Date
    07-15-2011
    Location
    Whitby, Canada
    MS-Off Ver
    Excel 2010
    Posts
    121

    Formula to separate text from alpha numeric codes

    Hi all,

    I have a list of data that includes the "Training Subject" and the Training Code" in the same cell and I would like an easy to separate them - workbook attached

    Sample:

    Please Login or Register  to view this content.
    Thanks
    Attached Files Attached Files
    Last edited by Greed; 02-17-2012 at 03:48 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Formula to separate text from alpha numeric codes

    In B1 enter:

    =TRIM(SUBSTITUTE(A1,C1,""))

    in C1 enter:

    =IF(ISNUMBER(FIND("OBC",A1)),"OBC ","")&TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",255)),255))

    each copied down.

    In some cases you have a number preceded by OBC, I assumed that was part of the code to extract with the above formulas....

    If not right, just use =TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",255)),255)) for C1 copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    07-15-2011
    Location
    Whitby, Canada
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: Formula to separate text from alpha numeric codes

    Super - Thanks a lot!

+ 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