+ Reply to Thread
Results 1 to 6 of 6

Changing Font colour via formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    288

    Changing Font colour via formula

    I would like to know if I can change the font colour of a result after using an "IF" formula.
    EG: If(A1>A2,[Red]"Yes",[Blue]"No")
    I know the normal answer will be 'Conditional Formatting', but I have more than 3 conditions and I am using Excel 2003.
    Any guidance would be greatly appreciated.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Changing Font colour via formula

    You're allowed more than 3 conditions..
    It's the FORMATS that are limited to 3.

    In reality, it's almost unlimited how many 'conditions' can trigger a cells font/color change.


    Can you give a realistic description of what you want?


    P.S.
    Your profile says you're using XL2007

  3. #3
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    288

    Re: Changing Font colour via formula

    I can try to describe.
    IF(H6>G6,[Blue]"Yes",[Red]"No") is one part and then IF(H6>G6 and E6>D6,[Green],"Yes",[Orange],"No")
    In reality, I would chnage the result cell to Windings2 font so that an Up or own arrow will appear. Based on my results, the Up arrow may need to be Blue or Green and the Down Arrow may need to be Red or Orange. Thank you for assisting.

    PS: I have updated my profile to show I have 2010 at home, but I am restricted to 2003 Excel at my place of employment.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Changing Font colour via formula

    In that case, you'll need a VBA solution.
    Conditional formatting can only do 3 different formats.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Changing Font colour via formula

    You might be able to "save" yourself a rule by formatting all cells to a certain color, and then have teh CF change that to whatever you want/need. that way, although you only have 3 rules to play with, it makes it seem taht you have 4.

    So the colors you want are...
    H6>G6,[Blue]"Yes",
    else [Red]"No") is one part and then
    H6>G6 and E6>D6,[Green],"Yes"
    else [Orange],"No")
    so if you make the background color, say, blue, then you would only need rules for the other 3 colors
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: Changing Font colour via formula

    Thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 04-09-2012, 04:27 PM
  2. Changing font colour before saving pdf
    By xe-dingo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-25-2010, 02:37 AM
  3. Changing font colour
    By Peter Rump in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2006, 01:08 PM
  4. Changing Font Colour if cell is certain word?
    By wuming79 in forum Excel General
    Replies: 5
    Last Post: 07-11-2006, 10:27 PM
  5. [SOLVED] Changing font colour in some cells
    By Di W in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-12-2006, 02:10 PM

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