Solved

Search cell for multi strings

Posted on 2016-08-18
3
38 Views
Last Modified: 2016-08-18
I need to search cell a2 for the following text

POBO
ROBO
VA
Virtual Accounts

If the cell contains any of those four texts, return "Found"

Many thanks
0
Comment
Question by:Seamus2626
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
ProfessorJimJam earned 500 total points
ID: 41760996
assuming the cell you are looking into is A1 then use the following formula.   it is case sensitive , if you do not want case sensitive then replace FIND with SEARCH

=IF(SUMPRODUCT(--ISNUMBER(FIND({"POBO","ROBO","VA","Virtual","Accounts"},A1)))>0,"Found","Not Found")

not case sensitive then
=IF(SUMPRODUCT(--ISNUMBER(SEARCH({"POBO","ROBO","VA","Virtual","Accounts"},A1)))>0,"Found","Not Found")
0
 

Author Closing Comment

by:Seamus2626
ID: 41761168
Thanks Professor!
0
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 41761191
you are welcome seasmus2626. i am glad i was able to help
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a serious pitfall that can happen when deleting shapes using VBA.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question