View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
FSt1 FSt1 is offline
external usenet poster
 
Posts: 3,942
Default Boolean Operaters to equal 'Contained Within'

hi
try this.

=IF(FIND("AB",A1)0,1,2)

if the formula retuns #Value!, AB not found.
adjust to suit your data.

Regards
FSt1

"Colin Hayes" wrote:



HI

I'm using this formula :

=IF(K1="AB",5,6)

This places a number 5 in the target column if K1 contains the letters
"AB" , and a 6 if it doesn't.

The problem is that it only works for if the content is *exactly* "AB".
If there is any other content in the cell , it returns a false
conclusion.

What I really need is for this to work if the letters "AB" are contained
*anywhere* within the text in K1.

Is this possible?

Grateful for any help.