+ Reply to Thread
Results 1 to 6 of 6

retrieve the entire text from the "[(" ")]" from string

  1. #1
    Forum Contributor
    Join Date
    04-13-2017
    Location
    Buchares
    MS-Off Ver
    2016
    Posts
    117

    retrieve the entire text from the "[(" ")]" from string

    Hello, it's there a function , excep regex that can give me the text / sentence between "[(" ")]" from string ?

    function than can retrieve the entire text from the "[(" ")]"

    Examples :

    THE TEXT RESULTS
    [(cat)] cat
    [(orange)] orange
    long sentence with [(cats)] cats
    another possible thing with [(test123)] lets continue test123
    [(this is text)] this is text
    text here [(this is text)] and here this is text

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: retrieve the entire text from the "[(" ")]" from string

    Formula in D4

    =IFERROR(MID(B4,FIND("[(",B4)+2,SUM(FIND({")]","[("},B4)*{1,-1})-2),"")

    then copy down

  3. #3
    Forum Contributor
    Join Date
    04-13-2017
    Location
    Buchares
    MS-Off Ver
    2016
    Posts
    117

    Re: retrieve the entire text from the "[(" ")]" from string

    Quote Originally Posted by jindon View Post
    Formula in D4

    =IFERROR(MID(B4,FIND("[(",B4)+2,SUM(FIND({")]","[("},B4)*{1,-1})-2),"")

    then copy down

    Nice one ! but it as vba function i need for the project from a selected range like =givemetext("B4")
    thank you

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: retrieve the entire text from the "[(" ")]" from string

    =GetText(B4)

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: retrieve the entire text from the "[(" ")]" from string

    try
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    04-13-2017
    Location
    Buchares
    MS-Off Ver
    2016
    Posts
    117

    Re: retrieve the entire text from the "[(" ")]" from string

    Thanks guys !

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. [SOLVED] Need formula that finds the last ", " in a text string & substitutes it w/ the word "and"
    By danielneedssomehelp in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-23-2014, 04:06 PM
  4. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  5. Replies: 0
    Last Post: 03-21-2014, 09:58 AM
  6. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  7. How can i copy value from "HTMLText"(EMBED("Forms.HTML:Text","")),using Macro
    By andrewyang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2010, 12:47 AM

Tags for this Thread

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