We help IT Professionals succeed at work.
Get Started

Excel Function / Formula to evaluate "field contains" from a list

1,625 Views
Last Modified: 2012-05-06
I need a function that looks for substrings in a cell from a list of substrings in a adjacent worksheet.

Here is a scenario:
In A Workbook:
1)  Worksheet1 contains 100,000 rows
2)  Column C in Worksheet1 contains text phrases, 0 to 100 characters (maybe 0 to 20 words) and may have embedded punctuation.
3) Worksheet2 contains 20 rows
4)  Column A in Worksheet2 contains 1 word in every row
5)  **** I would like fields in Column D in Worksheet1 to contain TRUE if any word in Worksheet2 is contained in, or equal to the adjacent field C in Worksheet1, and FALSE, if not.

Obviously, if "Equal To" was the criteria, this is easily done using vlookup.  What I need is "Equal to" OR "Contains".

Note:  I would prefer a solution that works in Excel 2003, but 2007 would be OK, if necessary
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2010
Commented:
This problem has been solved!
Unlock 2 Answers and 8 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE