I'd like to return a value if either "this" or "that" are present in cell a2. I tried:
if(isnumber(search("this" or "that",a2)),"good",a2)
but it's not working. What am I doing wrong?
I'd like to return a value if either "this" or "that" are present in cell a2. I tried:
if(isnumber(search("this" or "that",a2)),"good",a2)
but it's not working. What am I doing wrong?
Last edited by Ocean Zhang; 06-02-2011 at 02:30 PM.
How about something like:
=IF(OR(A2={"This","That"}),"Good","")
HTH
Regards, Jeff
XL also has a useful HELP which can be accessed with the F1 key
thanks jeff and arthur!
Thanks for showing me the {} and the proper formatting. I got this to work:
=IF(OR(ISNUMBER(SEARCH({"This","That"},A2))),"Good",A2)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks