+ Reply to Thread
Results 1 to 5 of 5

Removing parentheses from text cell

  1. #1
    Registered User
    Join Date
    12-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    12

    Removing parentheses from text cell

    Hello everyone

    An externally generated CSV file gives us one column which shows a location, year and then individual names in brackets, like so:

    London 2013 (Firstname Lastname)
    Delhi 2012 (Firstname Lastname)

    I'm wondering if it is possible to separate out the text before the parentheses, so that I can show "London 2012" (for example) in another cell. The number of characters changes from row to row, so using the LEFT and RIGHT functions doesn't quite do the job. Does anyone have any ideas of ways around this?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,377

    Re: Removing parentheses from text cell

    Assuming the data starts in cell A2:

    =IFERROR(LEFT(A2,FIND("(",A2)-1),A2) and copy down


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Removing parentheses from text cell

    Works a treat, thank you!

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Removing parentheses from text cell

    Just another option, if this is a one-time change then you can use Text to Columns and indicate "(" as a delimiter.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,377

    Re: Removing parentheses from text cell

    You're welcome. Thanks for the rep.

+ 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