+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    06-28-2006
    Posts
    24

    Extracting data between parentheses

    How do I extract information, contained within parentheses, from a string?


    Washer (12345) Steel = 12345
    Carbon Filter (12H56-001) = 12H56-001
    Right Wing 57 (HH12-P) = HH12-P
    (1154489993) Camera = 1154489993
    Last edited by stevemyers; 03-18-2010 at 03:36 PM.

  2. #2
    Forum Moderator ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2003 & 2010
    Posts
    1,797

    Re: Extracting data between parentheses

    Hi,

    Try this:

    Code:
    =MID(A2,SEARCH("(",A2)+1,SEARCH(")",A2)-SEARCH("(",A2)-1)
    Cheers,
    Docendo discimus.

    Please consider:
    • Thanking those who helped you. Click the reputation icon in the contributor's post and add Reputation.
    • Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    06-28-2006
    Posts
    24

    Re: Extracting data between parentheses

    Thanks. Perfect

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.2.0