+ Reply to Thread
Results 1 to 6 of 6

Search multiple cells for a multiple wildcard words

  1. #1
    Registered User
    Join Date
    05-19-2024
    Location
    Australia
    MS-Off Ver
    365
    Posts
    4

    Search multiple cells for a multiple wildcard words

    Hi I'm trying to use a list of wildcard words to search multiple cells for any of the listed words. If the searched cells contain any version of the word ie *bird* should activate with any of the following (Bird, Birds, birds, bluebird, birdbath), then I would like a yes returned. If not then either leave blank or return a no. I've got a number of formulas but they aren't quite right and I'm not very good at creating/changing formulas.

    From what I've attached sheet 1 (export Dump) is just all the info dumped in. Sheet 2 (Data Tables) has the tables of words that I want to look for. Sheet 3 (Filtered Results) is the filtered version of sheet 1 and what I'm trying to figure out is codes for Columns E+F in Filtered Results, based on text in column C+D.

    Right now I've got the following code for Test1 =IFERROR(LOOKUP(1,-SEARCH('Data Tables'!$D$2:$D$4,C2:D2),'Data Tables'!$D$2:$D$4),"") however it doesn't seem to be getting all the wildcard versions ie D3 (filtered Results) contains birdbath which should return a result. Also it's spitting out the stringword rather than just Yes.

    I tried something a bit different with Test2 with the following code =IF(COUNTIF(C2:D2,'Data Tables'!$E$2:$E$3),"Yes","No") but it gives me a spill error.

    Essentially if a formula works for test1 then it should work with test2 once I change the data table.

    I hope this makes sense.
    Attached Files Attached Files
    Last edited by kadicheej; 05-29-2024 at 08:34 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,017

    Re: Search multiple cells for a multiple wildcard words

    Please add a manually entered column in G that shows your EXPECTED results. Non-working formulae don't show us what we're aiming for. Thanks.
    Last edited by AliGW; 05-29-2024 at 01:08 AM. Reason: Typo fixed.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-19-2024
    Location
    Australia
    MS-Off Ver
    365
    Posts
    4

    Re: Search multiple cells for a multiple wildcard words

    Hi AliGW,
    thanks for the response.

    I've done as you requested, removed error codes and manually entered into (Filtered Results) G column the response I'm after and in H I've tried to explain why.
    Essentially based on the "Test1" list in the Data Tables sheet I want to search Sheet 3 (Filtered Results) columns C+D of each row and if any of the listed words (or any variant of the word)
    is there I want a YES placed in the E column of that row, if none of the listed words show then the cell can stay blank.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,017

    Re: Search multiple cells for a multiple wildcard words

    Not following this ...

    Row 4: swimming has *paint* as its search term, so why should the formula pick out 'bird'???

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,017

    Re: Search multiple cells for a multiple wildcard words

    OK, so this will get what you want for Test 1 *:

    Please Login or Register  to view this content.
    and this should get what you'd want for Test 2:

    Please Login or Register  to view this content.
    This, however, combines the two and looks at both Test 1 * and Test 2 at once, and returns YES if any of the values in either list is found:

    Please Login or Register  to view this content.
    * I believe that G3 should be YES - D3 contains 'birdbath'.
    Attached Files Attached Files
    Last edited by AliGW; 05-29-2024 at 02:38 AM. Reason: Workbook added.

  6. #6
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2501
    Posts
    1,448

    Re: Search multiple cells for a multiple wildcard words

    Here is another option:

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

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

    Test 1 & 2 together:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by CheeseSandwich; 05-29-2024 at 02:56 AM.
    If things don't change they stay the same

+ 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. Filter function with wildcard and multiple search values
    By Mr Stern 2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-29-2022, 09:05 AM
  2. Search multiple cells for multiple words and receive back....
    By Saintom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2019, 04:41 PM
  3. Wildcard search and return multiple rows
    By JahSon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-30-2018, 03:07 PM
  4. Search for Values that Multiple Search Words Share
    By Drew67209 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2014, 05:54 AM
  5. Search for multiple words in range of cells...answer in adjacent cell
    By TheDudestMonk in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-13-2013, 07:49 AM
  6. [SOLVED] Search box in Excel to search key words in sentences in multiple worksheets
    By fernandoii676 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-05-2012, 01:42 PM
  7. Replies: 2
    Last Post: 10-19-2012, 11:11 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