Contains

L

lehigh

Hi All:

Is there a formula or a conditional format which askes if a cell
contains a certain letter or word?

For example;

The contents of A1 is JOE, PETE, HARRY, MIKE
(all in the same cell)

The contents of B2 is PETE

How would you write a formula in C2 to ask if B2 is contained in A2?

Thanks for your help


Tom Snyder
 
P

Paul

Hi All:

Is there a formula or a conditional format which askes if a cell
contains a certain letter or word?

For example;

The contents of A1 is JOE, PETE, HARRY, MIKE
(all in the same cell)

The contents of B2 is PETE

How would you write a formula in C2 to ask if B2 is contained in A2?

Thanks for your help


Tom Snyder

=ISNUMBER(FIND(B1,A1))
 
D

David Hager

=FIND(B2,A2) will return a number if the item is found and an error if it is
not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top