Thread: colors
View Single Post
  #4   Report Post  
David McRitchie
 
Posts: n/a
Default

Hi Mir Khan,

If it is the font color you want to change
formula in cell C1:
=IF(A1B1,1,IF(A1<B1,-1,""))

format in cell C1:
[Green]"C";[Red]"D";"";

Fonts
http://www.mvps.org/dmcritchie/rexx/htm/fonts.htm

Examples for normal cell formatting in
http://www.mvps.org/dmcritchie/excel/formula.htm

Examples for Conditional Formatting in
http://www.mvps.org/dmcritchie/excel/condfmt.htm

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Mir Khan" <Mir wrote in message ...
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)