If cell contains...

T

Tim Sampson

Hi

I'm sure this must be the easiest question ever but it's proving very
difficult for me to find in the help and on Google.

What is the Excel function that says "if A1 contains "fred" then 1, else
0".

Note, A1 might contain Fred, Freddy or Alfredo, all should match.

TIA
Tim
 
T

Tim Sampson

hi
=IF(A1="Fred",1,IF(A1="Freddy",1,if(A1="Alfredo",1,0)))

Thanks but that's not quite what I was asking for. I might not know all the
different permutations. I want contains "fred".

Tim
 

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