+ Reply to Thread
Results 1 to 5 of 5

how to extract data from strings containing multiple parentheses?

  1. #1
    Forum Contributor
    Join Date
    03-11-2018
    Location
    Tampa, Florida
    MS-Off Ver
    365
    Posts
    105

    how to extract data from strings containing multiple parentheses?

    I'm looking for Excel code (no VBA please) to extract Columns B & C from Column A (desired results shown below, also sample spreadsheet attached). I've used LEFT, RIGHT, MID, LEN, SUBSTITUTE, etc. many times for extraction, but can't get it to work with multiple parentheses. Note that they may appear at the middle, end, 1 set, 2 sets, 3 sets, or not at all.


    Column A Column B Column C
    Reserve Bid (Pine Bluff) Rerserve Bid Pine Bluff
    Louve des Reves (IRE) (Sadler's Wells) Louve des Reves (IRE) Sadler's Wells
    Stormy Lanae' (Johar) Stormy Lanae' Johar
    Spelling (Alphabet Soup) Spelling Alphabet Soup
    Parvana (IRE) (Galileo (IRE)) Parvana (IRE) Galileo (IRE)
    City of Light (FR) (Kingsalsa) City of Light (FR) Kingsalsa
    Ladywell Court (Powerscourt (GB)) Ladywell Court Powerscourt (GB)
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: how to extract data from strings containing multiple parentheses?

    Formula for B1 =IF(ISERROR(FIND(") (",A1)),LEFT(A1,FIND("(",A1)-2),LEFT(A1,FIND(") (",A1)))

    Formula for c1 =IF(ISERROR(FIND(") (",A1)),MID(A1,FIND("(",A1)+1,LEN(A1)-LEN(B1)-3),MID(A1,FIND(") (",A1)+3,LEN(A1)-LEN(B1)-3))
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    03-11-2018
    Location
    Tampa, Florida
    MS-Off Ver
    365
    Posts
    105

    Re: how to extract data from strings containing multiple parentheses?

    Quote Originally Posted by mehmetcik View Post
    Formula for B1 =IF(ISERROR(FIND(") (",A1)),LEFT(A1,FIND("(",A1)-2),LEFT(A1,FIND(") (",A1)))

    Formula for c1 =IF(ISERROR(FIND(") (",A1)),MID(A1,FIND("(",A1)+1,LEN(A1)-LEN(B1)-3),MID(A1,FIND(") (",A1)+3,LEN(A1)-LEN(B1)-3))
    Thank you SO MUCH! That's exactly what I needed. I was in the ballpark ... not sure I would've ever matched your formulas though.

  4. #4
    Registered User
    Join Date
    03-25-2019
    Location
    buffalo, NY
    MS-Off Ver
    2017
    Posts
    1

    Re: how to extract data from strings containing multiple parentheses?

    ABC CO > Executive (Tom Johnson) > Accounts Payable (Mary Price) > Accounts Receivable (Tom Reynolds) > Payment Processing (Sharon Adams) > Service Department (Julie Thomas) > Finance Team (Tom Attwood) > Service Front Department (David Cohen) > Fulfillment (Shannon Jones)

    Is there an excel formula where I can extract all of the names in parentheses that's in cell A1? If possible, I like to have it extract one full name per cell individually. Another option I can use is if I can have it give me the name of the 4th person listed in the hierarchy chain.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: how to extract data from strings containing multiple parentheses?

    Here is another way
    1. Enter formula in B1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2. Enter formula in C1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C
    1 Reserve Bid (Pine Bluff) Reserve Bid Pine Bluff
    2 Louve des Reves (IRE) (Sadler's Wells) Louve des Reves (IRE) Sadler's Wells
    3 Stormy Lanae' (Johar) Stormy Lanae' Johar
    4 Spelling (Alphabet Soup) Spelling Alphabet Soup
    5 Parvana (IRE) (Galileo (IRE)) Parvana (IRE) Galileo (IRE)
    6 City of Light (FR) (Kingsalsa) City of Light (FR) Kingsalsa
    7 Ladywell Court (Powerscourt (GB)) Ladywell Court Powerscourt (GB)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Extract Text in Parentheses From One Cell to Another
    By Dhyre in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-13-2020, 04:10 AM
  2. [SOLVED] How to extract text between brackets/parentheses in Excel?
    By chief_abound in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-19-2015, 05:12 AM
  3. How to extract text in between LAST set of parentheses?
    By kioken in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-27-2015, 02:08 PM
  4. [SOLVED] Extract Values between two Text Strings, MULTIPLE condition
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2015, 01:28 AM
  5. extract multiple pieces of text between two strings
    By verbatim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2014, 04:42 PM
  6. [SOLVED] Need to extract text from within multiple strings and arrange it in a single column
    By sampflederer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2013, 01:35 PM
  7. Extract multiple values from long strings of text
    By Patrick791 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2012, 04:17 AM

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