I've been struggling to make this work. I can find bits and pieces of different formulas online but haven't been able to get what I need.
So, I have a list of cells that each contain a word, lets say in cells A1:A10. In cell B1, I have a string of text. I want to search cell B1 for any of the words in the A1:A10 list, BUT I need it to search WITH Case Sensitivity, AND ALSO allow the use of wildcards (so I can get whole word matches only). How is this possible?
Here is a random example to explain my logic: Lets say cell B1 contains the string "Abc Xyz". Within the A1:A10 list, there are the strings "Ab" and "Bc". I want this search to return false, because a whole word from the list wasn't found in B1. But if "Abc" or "Xyz" was added to the list, then the search would return true because a whole word was found. So far, I've found that:
- The FIND function is Case sensitive, so it won't register a match with "Bc" which is good, but it will with "Ab". So with "Ab" I get a true when I want a false. And it can't use wildcards, see next comment.
- The SEARCH function isn't Case Sensitive, so it finds "Bc", so I get a true when I want a false. BUT it allows me to use wildcards, so I can search "Ab~ " so it looks for a space only after the search term, which gives me the "Ab" false when I need it. I might have the syntax wrong, but the search-for range would be A1:A10&"~ ".
- The EXACT function doesn't work because "Abc" and "Xyz" are not exact matches to "Abc Xyz". So I get a false when I want a true.
- The MATCH function doesn't work because "Abc Xyz" will never be in the A1:A10 list in a single cell.
Any help you all can provide is GREATLY appreciated. Been wracking my brain on this for hours.
(Edit: In a nutshell, I'm looking for a way to search against whole-word matches only, with case sensitivity, from a list of search terms.)