How do I write a formula for if cell a1 does not contain "abc" then return the value "Happy 4th of July" otherwise ""?
eg: "dkdkdkdk" should give me the value Happy 4th of July.
"I like to sing my abcs" should return a blank cell.
Thanks!
How do I write a formula for if cell a1 does not contain "abc" then return the value "Happy 4th of July" otherwise ""?
eg: "dkdkdkdk" should give me the value Happy 4th of July.
"I like to sing my abcs" should return a blank cell.
Thanks!
Last edited by Ocean Zhang; 07-01-2011 at 06:03 PM.
Hello,
Assume the text is in A1, in B1 enter,
=IF(ISERROR(SEARCH("abc",A1)),"Happy 4th of July","")
Or,
=IF(COUNTIF(A1,"*abc*"),"","Happy 4th of July")
Regards,
Haseeb Avarakkan
__________________________________
"Feedback is the breakfast of champions"
that worked great. thanks!
hi
please help me
=COUNTIF(J6:J24,"Disqualified")
countif that range has the text disqualified. if not make 0 in formula
Administrative Note:
Welcome to the forum.
We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original. Please start a new thread - See Forum rule #4
If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
Dave
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks