+ Reply to Thread
Results 1 to 4 of 4

colors

  1. #1
    Mir Khan
    Guest

    colors

    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)

  2. #2
    David Billigmeier
    Guest

    RE: colors

    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.

    --
    Regards,

    David Billigmeier



    "Mir Khan" wrote:

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


  3. #3
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    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
    Bruce
    The older I get, the better I used to be.
    USA

  4. #4
    David McRitchie
    Guest

    Re: colors

    Hi Mir Khan,

    If it is the font color you want to change
    formula in cell C1:
    =IF(A1>B1,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 [email protected]> wrote in message news:[email protected]...
    > 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)




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1