#1   Report Post  
Posted to microsoft.public.excel.misc
Kim Kim is offline
external usenet poster
 
Posts: 284
Default CF for Text

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default CF for Text

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.)


New Delhi, India


"Kim" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default CF for Text

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")

--
Rick (MVP - Excel)


"Kim" wrote in message
...
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.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested formula to search a text string and return specific text Barbie Excel Worksheet Functions 10 February 21st 09 07:40 AM
grab cell text from multi-tab workbook, show text in another workb pfa Excel Worksheet Functions 16 August 10th 07 08:50 PM
Sumif text is contained winthin a longer text string in a cell Johnny M[_2_] Excel Worksheet Functions 3 March 21st 07 02:50 PM
Text does not display in "Text boxs" and when wrapping text in a c Esteban Excel Discussion (Misc queries) 1 March 8th 07 11:59 PM
Counting a mixed text/number column based on text in another colum Sierra Vista Steve Excel Discussion (Misc queries) 3 December 17th 06 05:30 PM


All times are GMT +1. The time now is 07:07 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"