+ Reply to Thread
Results 1 to 5 of 5

Search for Multiple Strings then Return Result

  1. #1
    Forum Contributor
    Join Date
    10-27-2005
    Posts
    177

    Search for Multiple Strings then Return Result

    Hello. I am not sure whether a macro or formula will be the most appropriate solution to my problem.

    Please see attached. In the Initial sheet, the cells to fill are highlighted in yellow.

    Basically, I would like to search for each attribute (Model, User, Color) in the Description column (col. I) and if all are found in the description then return the Part Number.

    When the attribute is searched for, it does not have to be an exact match. For example, for cell E2, search for "Stark", "i337", "Tony", and "Red". Even though the description says "i337m", then i337 is found. Even though it says "ArmorTony", then "Tony" is found. And vice versa. Since all the attributes are in the description, it should then return the part number STKI337TONRED.

    The desired result is in the Result sheet.

    Any assistance would be much appreciated.
    Attached Files Attached Files
    Last edited by uberathlete; 08-13-2015 at 07:05 AM.

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

    Re: Search for Multiple Strings then Return Result

    Hi.

    Not sure I understand your expected results.

    For row 3, "Bruce" is found nowhere within the string "Waynetech S560M Batmobile Black".

    And for row 4, "Black" is found nowhere within the string "Waynetech I774 Utility Belt Bruce Yellow".

    Regards
    Click * below if this answer helped

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

  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 for Multiple Strings then Return Result

    (Duplicate post: MODs/ADMIN please remove!)
    Last edited by XOR LX; 08-13-2015 at 05:48 AM.

  4. #4
    Forum Contributor
    Join Date
    10-27-2005
    Posts
    177

    Re: Search for Multiple Strings then Return Result

    Hi XOR LX. So sorry about that. I have made corrections to the file.

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

    Re: Search for Multiple Strings then Return Result

    Thanks.

    Try this array formula**:

    =INDEX(H$2:H$8,MATCH(COLUMNS(A2:D2),MMULT(0+(ISNUMBER(SEARCH(A2:D2,I$2:I$8))),TRANSPOSE(COLUMN(A2:D2))^0),0))

    Copy down as required.

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

+ 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. excel formula to search Multiple strings in several columns and return strings
    By krratna123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-13-2013, 11:20 AM
  2. Replies: 1
    Last Post: 08-13-2013, 08:32 AM
  3. 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
  4. how to use VBA to search and return search result in the user form
    By pearlynie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2013, 07:58 AM
  5. Replies: 5
    Last Post: 03-29-2012, 04:12 AM
  6. Search for multiple criteria then return result
    By ctrapper in forum Excel General
    Replies: 7
    Last Post: 03-15-2011, 09:03 PM
  7. How can i search for multiple values to return 1 result using vlookup?
    By buzf355 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-12-2008, 04:11 PM
  8. How can i search for multiple values to return 1 result using vlookup?
    By buzf355 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2008, 06:28 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