may be like it
=IFERROR(FIND("AB1",A3)^0,"")
copy down