![]() |
|
|
|
#1
|
|||
|
|||
|
Without VBA? my goodness I find that so much more difficult. In any case here is a formula that you will need to taylor for each array of strings you want to search.
Code:
=SUMPRODUCT(NOT(ISERR(SEARCH({"onald","ing","oil"},A2)))*{1,2,4})
For example to check for all weekdays in a string the formula would have to look like this. Code:
=SUMPRODUCT(NOT(ISERR(SEARCH({"Mon","Tue","Wed","Thu","Fri"},A2)))*{1,2,4,8,16})
If there is a match found a number will be returned. You can enclose this in a iferror formula to get it to read "" if there is no match. If this were me I would go insane having a bunch of formulas like this when I could just have a script that runs when I click a button and checks the strings in a matter of seconds. No waiting for formulas to calculate and I can add as many search terms as I want. Let me know if you want to do the VBA route and I will be happy to write something up for you. Thanks |
|
| Tags |
| categories, search results, string |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Reference another workbook and return values from the same cell across multiple sheets/tabs
|
lwls | Excel Programming | 5 | 11-08-2014 02:11 PM |
Search the text in 3rd cell by using texts in 2 cells
|
Shinaj | Excel Programming | 1 | 05-09-2014 09:17 AM |
| Search cell text from Excel into ms-word | ShailShin | Word VBA | 1 | 04-21-2014 02:12 AM |
| How do I output text to a specific cell (x,y)? | norwood | Word VBA | 2 | 01-31-2014 08:43 AM |
| How to set style automatically for specific texts | ragesz | Word | 2 | 07-25-2013 07:08 AM |