Conditional formatting with "contain".

Solved/Closed
Tulsi17 Posts 2 Registration date Wednesday 15 January 2014 Status Member Last seen 15 January 2014 - 15 Jan 2014 à 12:29
 Blocked Profile - 15 Jan 2014 à 17:31
Hello...I am using Excel 2007. I can't get beyond the following: =ISNUMBER(SEARCH("campaign",A2))=TRUE

This is what I'm trying to do...If cell A2 contains the word campaign, then return the complete entry for cell A2 (whatever is in cell A2); otherwise, enter "Employee Referral". Of course, the above format formula merely returns the word "True". So I tried to manipulate it by doing the following:

=ISNUMBER(SEARCH("campaign",A2)), "Employee Referral", and it really didn't like that. I don't know how to ask this question.

Can anyone help? Thank you.

2 responses

Blocked Profile
15 Jan 2014 à 15:54
Ok, hang in there.

Give this a go:
=IF(ISNUMBER(SEARCH("campaign",A2)),A2,"employess referral")


The logic for IF is as followS:
=if(logic_test,true,false)


Have FUN!

Post back!

//ark
-Moderator/Contributor
Tulsi17 Posts 2 Registration date Wednesday 15 January 2014 Status Member Last seen 15 January 2014
15 Jan 2014 à 16:49
THANK YOU THANK YOU, ac3mark!!! You're the bee's knees!!!! It worked!!! a million thanks!
Blocked Profile
15 Jan 2014 à 17:31
That is what I like to hear! Mark it as solved, please!