CF for Text

K

Kim

Can someone please help with with a formula for conditional formating for text.

A B
1 No Yes
2 Yes Yes
3 Yes No
4 No No

I need to set CF for column B to:
If B is not the same as A and B = Yes (turn green)
If B is not the same as A and B = No (turn red)

Thanks.
 
D

DILipandey

Hi Kim,

Use following CFs for the both the cases respectively:-
For Green
=IF(AND(B1<>A1,B1="Yes"),"True","False")

For Red,
=IF(AND(B1<>A1,B1="No"),"True","False")

Note: You might need to set the colors.
--

Dilip Kumar Pandey
MBA, BCA, B.Com(Hons.)
(e-mail address removed)
(e-mail address removed)
New Delhi, India
 
R

Rick Rothstein

Use this CF formula fro your red condition...

=AND(A1<>B1,B1="Yes")

and this one for your green condition...

=AND(A1<>B1,B1="No")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top