Splitting part codes
Upcoming Power Excel Seminars
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Splitting part codes

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Posts
    62
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Hi all, a simple one for somebody!
    Column A shows 100's of part codes much like the one shown:
    1HAT60847BC-LB16SA
    I want column B to show LB16SA.
    Any bright ideas?
    Thanks

    Matt

  2. #2
    Board Regular
    Join Date
    Feb 2002
    Location
    England
    Posts
    212
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Try this formula in B1

    =right(A1,6) and then copy formula down

  3. #3
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,833
    Post Thanks / Like
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)

    Default

    On 2002-03-22 04:15, MattB wrote:
    Hi all, a simple one for somebody!
    Column A shows 100's of part codes much like the one shown:
    1HAT60847BC-LB16SA
    I want column B to show LB16SA.
    Any bright ideas?
    Thanks

    Matt
    In case the segment you want to extract is of variable length, use:

    =RIGHT(A1,LEN(A1)-SEARCH("-",A1))

  4. #4
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Also..

    =REPLACE(A3,1,FIND("-",A3),"")

  5. #5
    Board Regular
    Join Date
    Feb 2002
    Location
    England
    Posts
    212
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Or you could use text to columns on the data menu

    - select delimited as your data type
    - for your delimiter select other and enter "-"

    this will also split your cells as requested

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com