How to use conditional format based on text [Solved/Closed]

Leanne99 1 Posts Friday November 9, 2012Registration date November 9, 2012 Last seen - Nov 9, 2012 at 05:28 AM - Latest reply:  Slow Bo
- Sep 13, 2017 at 02:23 PM
Hello,
I want a cell to change colour if another cell contains the words "first aid". The text comes down from a drop down list and could read "First Aid" or "sleepover/first aid". If the cell has "first aid" in it I want the other cell to change colour

I can get it to work if using formula f13=first aid but it won't change colour if the cell says sleepover/first aid?

thanks

Leanne



See more 

25 replies

Zohaib R 2416 Posts Sunday September 23, 2012Registration date November 12, 2017 Last seen - Updated by Jeff on 24/03/17 at 12:26 PM
+74
Helpful
14
Hi Leanne99,

You are following the right steps, instead of "f13=first aid" enters the below mentioned formula:

=ISNUMBER(SEARCH("first aid",F13))=TRUE


For step by step help on this, in your reply please mention the version of Microsoft Excel you are using (such as Excel 2003, 2007, 2010, etc.)

Please do write back to us.

Thanks & Regards
Zohaib R
#iworkfordell
Was this answer helpful?  
Thanks a lot :D
its 2016 and this answer is still good! I used it to format cells that contained the word "Medium" but the look up was "Medium-8" through to "Medium-18" worked perfectly. Cheers Zohaib R :)
Thanks for this post, saved me a lot of time.
June 2017 - Thanks so much Zohaib, I was running in circles and wouldn't have thought of this (self taught, and I still don't understand its logic, but it works so I'm ecstatic!) ~K
Thank you! Finally, a solution that worked for me! I needed to highlight every cell that contained 'yes' and this did it.
+34
Helpful
Hi, I have 2 columns. I want to chenge the color of column B based on value in column A. If value in A is greater than or equal to zero, color should be green else red(I am doing this with conditional formatting and it works fine.)

Problem:
when the color is changing I want to add a text On track and color green or else delayed and color red. Is that possible?
Zohaib R 2416 Posts Sunday September 23, 2012Registration date November 12, 2017 Last seen - Nov 15, 2012 at 04:56 PM
+13
Helpful
4
Hi Leanne99,

Use the below mentioned steps to apply conditional formatting to the cells.

1. Select the cells where you want to apply the Conditional Formatting.
2. Click Conditional Formatting from the top ribbon.
3. Select New Rule.
4. Click Use a formula to determine which cells to format.
5. Enter the below mentioned formula in Format values where this formula is true:

=ISNUMBER(SEARCH("first aid",F13))=TRUE

6. You will all the cells which have the word "first aid" in it, the cells against them will be highlighted.

Please revert for clarification.
I used the formula but it gives me different result, I mean not correct
deeptis 6 Posts Thursday June 19, 2014Registration date July 25, 2014 Last seen - Jun 24, 2014 at 10:47 AM
Hi Zohaib,

This is very helpful, is there a way to make the whole row against the cell with "first aid" to be highlighted, rather than just the cell next to it?
advntr 1 Posts Monday August 4, 2014Registration date August 4, 2014 Last seen - Aug 4, 2014 at 07:18 PM
This worked perfectly! Thanks Zohaib!
Thank you very much,
Works perfectly.
Oscar N
+3
Helpful
Hi Zohaib

thank you so much for your reply. I am using Office 2011 for Mac. I have tried using and OR formula and this appears to be working although a little complex.

Again thank you for your reply

regards

Leanne99
Grinty 1 Posts Thursday February 28, 2013Registration date February 28, 2013 Last seen - Feb 28, 2013 at 08:38 AM
+3
Helpful
This is particularly helpful, but can it be extended to respond in other colours where the answer in F13 may not be "first aid", but something else like "health & safety"?

So an either/or function of some sort?
Zohaib R 2416 Posts Sunday September 23, 2012Registration date November 12, 2017 Last seen - Feb 28, 2013 at 10:57 AM
+2
Helpful
Hi Grinty,

Please check the below mentioned link:

http://ccm.net/forum/affich-689619-conditional-formatting-change-fontcolor-based-on-another-cell

I have used AND Logical Operator to select three different criterion. Check if this helps.

If you need further assistance please post some more details about your datasheet. In addition, you can upload a sample file to: http://www.speedyshare.com/

Note: Before you upload any files please make sure there is no personal or confidential information contained in it.
0
Helpful
I have two columns with different information. I want to be able to highlight certain information in both columns based off of the information entered. If Column E contains 38, 48, 55, 56, 58, 70 OR 713 and Colum C contains "service", then highlight both cells. I am on Office 2010.