colors

M

Mir Khan

Can anyone help me with colors using IF statement.
Column A and Column B has numbers and Column C is a logical field to display
thumps up or thumps down with colr green or red.
I have Thumps Up symbol and Thumps Down Symbol from wingdings font. If
number in Column A is greater it should turn the thumps up sign green in color
and if number in Column A is smaller the color of ThumpsDown symbol should
change to red (defualt color is black and default thumps direction is up)
 
D

David Billigmeier

Use conditional formatting: Format->Conditional Formatting.

Choose "formula is" and enter this formula for condition 1:

=if(A1>B1,TRUE,FALSE)

Then, for the formatting make the font green and do whatever else you wish
to occur if column A is greater than B.

Likewise make this formula for condition 2:

=if(B1>A1,TRUE,FALSE)

and make this formatting Red color.
 
S

swatsp0p

Dave's response is just what you need. I would like to ask what you
intend to do if A1=B1?

You may want to address this as such:

=IF(A1>B1,"C",IF(B1>A1,"D","K")) formatted as WingDings (the "K"
returns the smilely face with no expression). Following Dave's Cond.
Formatting, this would be returned in the Automatic font/fill color.

HTH

Bruce
 

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