Donate SIGN UP

Excel 2003 change cell colour based on text?

Avatar Image
styley | 12:16 Thu 12th Jan 2012 | How it Works
12 Answers
Is there a handy way to change a cell colour based on the text entered into the cell. For example if "Yes" is typed into the cell it will turn green and if "No" is entered into a cell it will turn red?
Gravatar

Answers

1 to 12 of 12rss feed

Best Answer

No best answer has yet been selected by styley. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Look up 'Conditional Formatting'
Format/Conditional Formatting, as HK says.
You can set up cell value is equal to "Yes" and then set the format to have a pattern, font, and border as required. Then a second condition for "No".
Question Author
Thanks, got that working now. But is there a way to allow for the word to be either "Yes" or "yes" and "No" or "no"?
Question Author
Actually, I know what to do now. Thanks for the help guys.
Question Author
Aargh!! No I don't. I thought that I could just add in two more conditions to allow for it but it would only let me do one. Does anyone know how to phrase it so that it allows for either "Yes" or "yes" or "No" or "no"?
you may be able to include the 'UPPER' function as part of the condition. I haven't tried anything this complex.
^
obviously the condition check will then be YES or NO
Do you mean that you want one colour if it's YES and another colour if it's yes?

Otherwise, it's working for both for me.
I think you'd need to define 4 conditions.
And since it is 3 maximum you've a problem.

Maybe you can highlight a cell in a different column by setting it using a nested if statement referring to the yes/no cell. Not quite what you want but it is a work around maybe.
Question Author
SeaJay was right, it worked regardless of upper or lower case. Don't know why it didn't work correctly the first time but it is working correctly now. Thanks for all the responses.

1 to 12 of 12rss feed

Do you know the answer?

Excel 2003 change cell colour based on text?

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.