if a cell = a particular letter or even contains that letter

B

Brian

=IF(M22="all","a",IF(M22="e","r","a"))

Notice the "e", how can I insert the following:

....If m22 contains "e" anywhere,"r","a"))

Thanks

Brian
 
R

Ron Rosenfeld

=IF(M22="all","a",IF(M22="e","r","a"))

Notice the "e", how can I insert the following:

...If m22 contains "e" anywhere,"r","a"))

Thanks

Brian

.... =IF(COUNTIF(m22,"*e*")>0,"r","a")


--ron
 
Top