+ Reply to Thread
Results 1 to 6 of 6

Formula to pull text from between two parentheses

  1. #1
    Registered User
    Join Date
    06-19-2018
    Location
    Boston
    MS-Off Ver
    2016
    Posts
    40

    Formula to pull text from between two parentheses

    I have a document I exported from our ERP system. The format of it is not great so I am attempting to clean it up. We have some text that begins in one cell and ends in another cell. For example

    column A1
    (MUST SEND PART

    columnB1
    WITH UNIT 2PCS PER)

    My question is does anybody have an idea of how I can extract data from a multiple cells between parentheses. I have used a formula like this
    =IFERROR(MID(Master!G2,SEARCH("(",Master!G2)+1,SEARCH(")",Master!G2)-SEARCH("(",Master!G2)-1)," ")

    To pull anything in a parentheses in a single cell and put it into another cell but was wondering if there was a formula that could look for a beginning parentheses in one cell and an ending parentheses in the next cell and pull that out and put it into its own cell?


    Any help or suggestions would be great!!
    Last edited by xBxW; 06-20-2018 at 03:05 PM.

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Formula to pull text from between two parentheses

    If the data is as shown above in A1 and B1
    Use this formula in C1:

    HTML Code: 
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,631

    Re: Formula to pull text from between two parentheses

    Please Login or Register  to view this content.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    06-19-2018
    Location
    Boston
    MS-Off Ver
    2016
    Posts
    40

    Re: Formula to pull text from between two parentheses

    That works great only issue I have is some of the cells contain characters before the ( and your code is including all of the text instead of just the text in the (

    Some of my cells could look like this for example. Can the formula be edited to just include in between the parentheses?
    column A1
    Part # Date (MUST SEND PART

    columnB1
    WITH UNIT 2PCS PER) Text

  5. #5
    Registered User
    Join Date
    06-19-2018
    Location
    Boston
    MS-Off Ver
    2016
    Posts
    40

    Re: Formula to pull text from between two parentheses

    Thanks ProtonLeah that is exactly what I was looking for!

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,631

    Re: Formula to pull text from between two parentheses

    You're welcome

+ 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. parentheses in text formulas
    By cpking in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-29-2018, 02:20 PM
  2. [SOLVED] return text ignoring text in parentheses
    By Mike Brewer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-24-2016, 10:00 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. Executing methods - parentheses or no parentheses?
    By dmasters4919 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-23-2015, 07:57 PM
  5. [SOLVED] Extracting all text from parentheses (including parentheses)
    By j4ke101 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-10-2013, 08:03 AM
  6. Extracting text within a parentheses
    By mridul1984 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2013, 02:11 AM
  7. Replies: 6
    Last Post: 01-13-2011, 03:00 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