I am attemting to seach for the text "sale," "new," and "order." Is there a formula that I can use to give me a TRUE indicator if the cells I am looking in contains one of those 3 terms and a FALSE if is doesn't?
I am attemting to seach for the text "sale," "new," and "order." Is there a formula that I can use to give me a TRUE indicator if the cells I am looking in contains one of those 3 terms and a FALSE if is doesn't?
Say we are examining a range of cells A1, B1, C1 and want to know if any of the three words appear at least once in the range. Try:
=OR(ISNUMBER(FIND("sale",A1 & B1 & C1)), ISNUMBER(FIND("order",A1 & B1 & C1)), ISNUMBER(FIND("new",A1 & B1 & C1)))
Gary's Student
I'm actually searching for those terms in one single cell. I tried writing the formula as only using the cell I'm working in but it isn't working.
Examine the cell A1:
=SUMPRODUCT(--ISNUMBER(SEARCH({"sale","new","order"},A1)))>0
Quang PT
Thank you much worked great
Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
Thanks.
Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks