I am wanting to do an if statement. If cell A contains "a certain word" then
Y else N. what is the syntax for the the contains portain of the if
statement?
I am wanting to do an if statement. If cell A contains "a certain word" then
Y else N. what is the syntax for the the contains portain of the if
statement?
Vstein wrote:
> I am wanting to do an if statement. If cell A contains "a certain word" then
> Y else N. what is the syntax for the the contains portain of the if
> statement?
Some example idioms...
=ISNUMBER(SEARCH(" "&E2&" "," "&A2&" "))+0
=ISNUMBER(FIND(" "&E2&" "," "&A2&" "))+0
=COUNTIF(A2,"*"&E2&"*")
Custom format the formula cell as:
[=0]"N";[=1]"Y"
Hi,
Try these:
case sensitive
=IF(ISERROR(FIND("YourString",A1)),"No","Yes")
=IF(SUBSTITUTE(A1,"YourString","")=A1,"No","Yes")
not case sensitive:
=IF(COUNTIF(A1,"*YourString*"),"Yes","No")
=IF(ISERROR(SEARCH("YourString",A1)),"No","Yes")
Regards,
KL
"Vstein" <[email protected]> wrote in message
news:[email protected]...
>I am wanting to do an if statement. If cell A contains "a certain word"
>then
> Y else N. what is the syntax for the the contains portain of the if
> statement?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks