+ Reply to Thread
Results 1 to 5 of 5

extract from string whole word(s) containing substring

  1. #1
    Registered User
    Join Date
    09-23-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    extract from string whole word(s) containing substring

    if a cell contains a string "Quarterly Reports for 2012", and I need words containing "por", what formula will return "Reports"?

    if a cell contains a string "Gone Fishing and not coming back", and I need all words containing "ing", what formula will return "Fishing; coming"?

    thanks very much.
    Last edited by Bearpecs; 09-24-2012 at 10:36 AM.

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: extract from string whole word(s) containing substring

    I think you will need a UDF.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    09-23-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: extract from string whole word(s) containing substring

    thanks very much!
    that works to find the first word in the string. can it be tweaked to provide all words in the string?

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: extract from string whole word(s) containing substring

    For me in cell A1 Gone Fishing and not coming back
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Returns Fishing coming.

  5. #5
    Registered User
    Join Date
    09-23-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: extract from string whole word(s) containing substring

    thank you!

+ Reply to Thread

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.6.0 RC 1