+ Reply to Thread
Results 1 to 6 of 6

Delete certain characters from cells...

  1. #1
    Registered User
    Join Date
    08-15-2011
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    78

    Delete certain characters from cells...

    Hi all,

    Have a minor problem, any help would be appreciated.

    I have download certain data from the internet. Basically, it is text with numbers next to it in brackets.
    I was wondering if there was any formula or comand that I could place in the adjacent cell that would drop off or delete the brackets and numbers, leaving only the text.

    I have attached a sample.

    Thanks in advance for any advice / help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Delete certain characters from cells...

    If it's a one time job, try Data - Text to Columns - Delimited - Next - enter ( as Delimiter - Next - Select the 2nd column and check " do not import" - OK

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Delete certain characters from cells...

    in g4 =LEFT(F4,FIND("(",F4)-1)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Delete certain characters from cells...

    A formula alternative =TRIM(LEFT(F4,SEARCH("(",F4)-1))

  5. #5
    Registered User
    Join Date
    08-15-2011
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    78

    Re: Delete certain characters from cells...

    Thanks guys, the formula seems to work, with one slight issue.

    After I enter the formula, the adjacent cell displays the way I want it to which is great. I then copy and "paste special", then select "values" in another cell.

    The problem I have is, the name in the new cell has a blank space after the text. This is causing a problem when I run a macro on the new data (run time error 13), as the base data my macro is using to search from does not have a blank cell at the end. If I go in and manually delete the blank space in the new cells, the macro works fine.

    I was wondering if this was an issue because I am running Excel 2003 ??

    Any help would be great !!

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Delete certain characters from cells...

    this one as posted above should not have any extra blanks =TRIM(LEFT(F4,SEARCH("(",F4)-1))

+ 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