View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default testing for left 2 characters in set of 3 choices

=IF(OR(LEFT(A1,2)={"cd","ef","gh"}),1,2)

--
Gary''s Student - gsnu200909