+ Reply to Thread
Results 1 to 6 of 6

Removing partial text in a line

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2003
    Posts
    39

    Removing partial text in a line

    Hi Guys,

    I need assistance with part of the text I need to remove from text out of a cell?

    The cell contains both the product name and product code in brackets. The problem is that the product code is not always 6 numbers for example so I can't use the Right function to isolate the product numbers.

    Attached is a sample! I need to extract only the product codes in brackets?

    Any ideas?

    Fugly
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Removing partial text in a line

    Perhaps..

    =MID(A1,FIND("(", A1)+1, LEN(A1) - FIND("(", A1) -1 )
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Removing partial text in a line

    Try

    =SUBSTITUTE(RIGHT(A1,LEN(A1)-FIND("(",A1)),")","")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

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

    Re: Removing partial text in a line

    =SUBSTITUTE(SUBSTITUTE(MID(A1,FIND("(",A1),LEN(A1)),"(",""),")","")
    copy down

  5. #5
    Registered User
    Join Date
    06-27-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: Removing partial text in a line

    Works like a bomb, thank you!

  6. #6
    Registered User
    Join Date
    06-27-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: Removing partial text in a line

    Oh that was for all 3 solutions, thanks guys!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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