A simple formula may be easier =find("corp",b1) this formula will return a value if it finds the string and #value if not which then could be eliminated by =if(iserror(find("corp",b1)),0,1) this would return a zero if the string is not found and a 1 if the string was found.