jspurr01 asked on # Excel Function / Formula to evaluate "field contains" from a list

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

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

Microsoft ApplicationsMicrosoft OfficeMicrosoft Excel

Log in or sign up to see answer

Become an EE member today7-DAY FREE TRIAL

Members can start a 7-Day Free trial then enjoy unlimited access to the platform

or

Learn why we charge membership fees

We get it - no one likes a content blocker. Take one extra minute and find out why we block content.

Not exactly the question you had in mind?

Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.

ask a questionGet an unlimited membership to EE for less than $4 a week.

Unlimited question asking, solutions, articles and more.

Patrick Matthews

Barry,

Quite true, my formula will match on partials, which may or may not be what is called for.

Man, I was feeling pretty impressed with myself about that formula, too! :)

Regards,

Patrick

Quite true, my formula will match on partials, which may or may not be what is called for.

Man, I was feeling pretty impressed with myself about that formula, too! :)

Regards,

Patrick

jspurr01

Greetings guys ... Thanks for the responses.

I will check these out and award points accordingly.

(for some reason, I am not getting email notifications any more when folks post)

I will check these out and award points accordingly.

(for some reason, I am not getting email notifications any more when folks post)

Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!

Walt Forbes

jspurr01

Wow, both are really cool.

Actually, 'whole word' was not the objective, but I do occasionally have the need, so, Thanks also to BarryHoudini.

Amazingly, I actually understand these solutions ... except for the "Array Formula" concept. I mean, I get the general idea, but can you point me to a faq or brief tutorial that gives some technical specifics of Array Formulae?

Actually, 'whole word' was not the objective, but I do occasionally have the need, so, Thanks also to BarryHoudini.

Amazingly, I actually understand these solutions ... except for the "Array Formula" concept. I mean, I get the general idea, but can you point me to a faq or brief tutorial that gives some technical specifics of Array Formulae?

jspurr01

These 2 answers are the best I have ever received on the Experts Exchange. Many Thanks to Both!!!

barry houdini

Chip Pearson describes array formulas here

Get an unlimited membership to EE for less than $4 a week.

Unlimited question asking, solutions, articles and more.

>>1) Worksheet1 contains 100,000 rows

[...]

>>Note: I would prefer a solution that works in Excel 2003, but 2007 would be OK, if necessary

Well, if one of your worksheets has 100k rows, then you can't use Excel 2003 :)