+ Reply to Thread
Results 1 to 5 of 5

Search substring within range, report the substring found

  1. #1
    Registered User
    Join Date
    12-16-2012
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Search substring within range, report the substring found

    Hi Everyone,

    What i have is a single worksheet that has a range from A2 to G30,000 that contains various text and numbers - there is nothing similar, these are random. At the end of this range, in column H, i have a list of strings that i want to search within the A2:G30,000 range. I can find formulas through online searches that can search for any of these sub-strings within a specified range and report either an "X" or some other text when a matching sub-string is found, but what i want to report is the sub-string that was actually found.

    Can this be done??

    I'm new to the forum and noticed on my post it has listed excel 2003... I'm actually using Excel 2010.. I'll suss out how to fix this, but i wanted to just add this comment to my post if anyone tries to help me in the mean time.

    Cheers!
    Last edited by Brooke1578; 12-16-2012 at 09:25 AM.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Search substring within range, report the substring found

    Try:

    Please Login or Register  to view this content.
    Gary's Student

  3. #3
    Registered User
    Join Date
    12-16-2012
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Search substring within range, report the substring found

    Hi Thanks so much for your prompt reply. I actually though wanted the string that was found to be listed in column I, not an "X" .

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Search substring within range, report the substring found

    Please attach a sample workbook for better understanding.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Registered User
    Join Date
    12-16-2012
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Search substring within range, report the substring found

    Hi Sixthsense.. I think i've actually stumbed across something that gives me my answer:

    =IFERROR(LOOKUP(2^15,SEARCH(Search_Strings,G2),Search_Strings),"")

    Where Search_Strings is the named range and contains the strings to be searched
    G2 is the cell to be searched

    Thanks for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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