+ Reply to Thread
Results 1 to 4 of 4

how to get colored outputs from a nested IF function

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    54

    how to get colored outputs from a nested IF function

    Hi,

    I was wondering if the following is possible to do. In cell A3 I have the following nested IF function:

    =IF(A1<60,"bad",IF(A1<80,"okay",IF(A1<90,"good","excellent")))

    I am wondering if it is possible to have the respective outputs have there own colors. ie. when bad is displayed in cell A3 it would be in the color red, when okay is displayed it would be color yellow, good would be color green, and excellent would be color blue.

    Thanks,

    Dan

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: how to get colored outputs from a nested IF function

    Select A1 and go to Home|Conditional Formatting New Rule.

    Select Format Only Cells That Contain... from the top

    Select: Cell Value >> Is Equal To >> and then enter ="bad"

    Click Format and choose from Fill tab.

    Click Ok, then click New Rule and repeat for each word/colour.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: how to get colored outputs from a nested IF function

    Here is NBVC solution...
    You have plenty other choices. I've entered Traffic Lights solution(So I slightly changed colors)
    Attached Files Attached Files
    Never use Merged Cells in Excel

  4. #4
    Registered User
    Join Date
    01-09-2012
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: how to get colored outputs from a nested IF function

    thanks for the help!

+ 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