+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Deleting text in parentheses (as well as the parentheses)

  1. #1
    Registered User
    Join Date
    01-11-2011
    Location
    Queens, NY
    MS-Off Ver
    Excel 2007
    Posts
    10

    Deleting text in parentheses (as well as the parentheses)

    Hi all,

    Tried searching around the web for this answer, it seems to get asked from time to time but maybe I'm too much of an Excel novice to implement the solution. Here goes:

    I'm not crunching numbers or formulas - I use Excel to manage movie lists, and one of my least favorite tasks is taking data from one column:

    Film Name x (Director's Name x)
    Film Name y (Director's Name y)
    Film Name z (Director's Name z)
    Film Name a (Director's Name a)
    Film Name b (Director's Name b)
    Film Name c (Director's Name c)
    Film Name d (Director's Name d)

    and converting it to two columns, where there'll be, in Column B:

    Film Name x
    Film Name y
    Film Name z
    Film Name a
    Film Name b
    Film Name c
    Film Name d

    and, preceding it, Column A:

    Director's Name x
    Director's Name y
    Director's Name z
    Director's Name a
    Director's Name b
    Director's Name c
    Director's Name d

    And we're talking thousands of lines. I don't mind typing up Column A manually, but what would be great is if I could take Film Name x (Director's Name x) and delete the parenthetical text, and the parentheses themselves.

    If the answer is a formula, could you also tell me where to paste the code? Because, as I mentioned earlier, lots of this stuff is over my head. Thanks!

    Jaime

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Deleting text in parentheses (as well as the parentheses)

    Formula wise - ignoring possibility of parentheses within file names...

    If strings are in A1 onwards then:

    Please Login or Register  to view this content.
    the above than strictly nec. based on samples but that would account for spurious spaces and/or lack of director.

    To reiterate though - if you have titles with ( ) then the above is flawed.

    To store Director in Column A (accepting same limitations outlined above):

    Run an Edit -> Replace on Column A replacing ) with nothing ... then higlight column and run Text to Columns -> Delimited with Other: set to (

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Deleting text in parentheses (as well as the parentheses)

    Or select whole column ctrl+H and replace ) with nothing

    Then same selected column Text to data -> Delimited and use ( as delimiter

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Deleting text in parentheses (as well as the parentheses)

    @zbor, I think I said that already [pretty much word for word]

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Deleting text in parentheses (as well as the parentheses)

    Didn't read at all

    Just saw a box with formulas...

    Edit: D'Oh
    Last edited by zbor; 01-12-2011 at 11:19 AM.

  6. #6
    Registered User
    Join Date
    01-11-2011
    Location
    Queens, NY
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Deleting text in parentheses (as well as the parentheses)

    Thanks very much, that works like a charm!

    How do you learn these things, are you guys/gals self-taught or do you take classes?

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Deleting text in parentheses (as well as the parentheses)

    I've learn here, on forum

+ 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