+ Reply to Thread
Results 1 to 3 of 3

Search Substring within column of text strings and list multiple results

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    1

    Search Substring within column of text strings and list multiple results

    I have applied a formula to search a substring within an array. Formula is producing results, though not all matches are appearing as result. I have tried the usual traps, spaces, formats...etc. Still cant figure out why only partial results are being listed. Would appreciate assistance on this.

    Thanking you in advance.
    Attached Files Attached Files

  2. #2
    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 column of text strings and list multiple results

    In B4 Cell - Array Formula - Requires CTRL+SHIFT+ENTER


    =IFERROR(INDEX($E$5:$E$129,SMALL(IF(ISNUMBER(SEARCH($B$1,$H$5:$H$129)),ROW($H$5:$H$129)-ROW($E$5)+1),ROWS($1:1))),"")


    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.


    In C4 Cell - Normal Formula Enter is enough


    =IFERROR(VLOOKUP(B4,$E$5:$F$129,2,FALSE),"")


    Drag both the formula's down


    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

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Search Substring within column of text strings and list multiple results

    Hi.

    First of all, I do not understand your MATCH construction here.

    Secondly, the unqualified ROW(), as always, is a poor choice for generating the k parameter for SMALL: here, for example, since your first formula is in row 4, this part will also return 4, meaning that you will miss the 1st, 2nd and 3rd results.

    ROWS is a far better choice in such situations, since it is both immune to row insertions within the range and, more importantly, is not dependent upon the row in which the formula resides. See here for more:

    http://excelxor.com/2014/08/25/row-v...er-generation/

    All in all, simply (in B4):

    =IFERROR(INDEX($E:$E,SMALL(IF(ISNUMBER(SEARCH($B$1,$H$5:$H$129,1)),ROW($H$5:$H$129)),ROWS($1:1))),"")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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. Search For Multiple Text Strings
    By jham808 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2015, 12:53 PM
  2. Truncate text strings using LEFT and FIND/SEARCH for multiple search terms
    By ngdoherty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 07:51 PM
  3. Search For Mutltiple Text Strings In Each Cell In A List
    By kevinwhite24 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2013, 02:22 PM
  4. Skakes in the Summer
    By lowryda777 in forum Excel General
    Replies: 2
    Last Post: 06-27-2012, 10:29 AM
  5. search for multiple text strings?
    By pbgvdad in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2008, 04:37 PM

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