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
 
Top