View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Teethless mama Teethless mama is offline
external usenet poster
 
Posts: 3,718
Default testing for left 2 characters in set of 3 choices

=AND(LEFT(A1,2)<{"cd","ef","gh"})+1


"MusicMan" wrote:

following returns true even if false
a1=ab1234
b1=if(left A1,2)=or("cd","ef","gh"),1,2) test if A1=cd or ef or gh, true
1, false 2
the above should return 2 false but returns 1 true in error?
I tried formula evaluation and it shows "ab"=false but then evalutes
combined to true in error.