+ Reply to Thread
Results 1 to 6 of 6

Extract text between specific string and closing parentheses

  1. #1
    Registered User
    Join Date
    10-22-2019
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    15

    Extract text between specific string and closing parentheses

    Please, can anyone help me out with a formula that will extract the text between the specific string "Format: " and the next instance of closing parentheses in my attached sample data?
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Extract text between specific string and closing parentheses

    Try this:

    =PROPER(TRIM(LEFT(SUBSTITUTE(MID(A2,FIND("Format:",A2)+8,99),")",REPT(" ",99)),98)))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: Extract text between specific string and closing parentheses

    Formula for B2

    =MID(A2,FIND("Format:",A2)+7,FIND(")",A2,FIND("Format:",A2))-FIND("Format:",A2)-7)
    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.

  4. #4
    Registered User
    Join Date
    10-22-2019
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    15

    Re: Extract text between specific string and closing parentheses

    Quote Originally Posted by AliGW View Post
    Try this:

    =PROPER(TRIM(LEFT(SUBSTITUTE(MID(A2,FIND("Format:",A2)+8,99),")",REPT(" ",99)),98)))
    Again, thank you for your help. I can confirm this works and returns exactly what I want

  5. #5
    Registered User
    Join Date
    10-22-2019
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    15

    Re: Extract text between specific string and closing parentheses

    Quote Originally Posted by mehmetcik View Post
    Formula for B2

    =MID(A2,FIND("Format:",A2)+7,FIND(")",A2,FIND("Format:",A2))-FIND("Format:",A2)-7)
    This too Thanks for taking a look.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Extract text between specific string and closing parentheses

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Extract text from between nth set of parentheses?
    By The Molecular Level in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2019, 11:38 AM
  3. Extract Specific Text From String
    By dawsexcel in forum Excel General
    Replies: 3
    Last Post: 07-13-2016, 01:44 PM
  4. [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
  5. 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
  6. Extract specific numbers from a string of text
    By Galwaygirl13 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-19-2012, 03:22 PM
  7. Replies: 11
    Last Post: 09-29-2011, 04:42 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