+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting + traffic light

  1. #1
    Registered User
    Join Date
    04-20-2011
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2013
    Posts
    54

    Conditional formatting + traffic light

    Hi all,

    I need some help with a conditional formatting problem I cannot seem to solve.

    In the attached sheet I'm trying to insert a traffic light on cell D15. The rules are as follows:

    Variance greater than 20% is RED (i.e. D15>20%)
    Variance between 10-20% is YELLOW (i.e. D15>10% & D15<20%)
    Variance less than 10% is GREEN (i.e. D15<10%)

    I'm trying to use the icon sets as shown below.

    Icon Sets JPEG.jpg

    Conditional Formatting question.xlsx



    Why is it not working???
    Last edited by Kagesen; 01-07-2016 at 05:02 AM.

  2. #2
    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
    52,939

    Re: Conditional formatting + traffic light

    you have a whole-number value in D15, but are trying to test it against a percentage. Try converting that -109 to a % opf total
    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

  3. #3
    Registered User
    Join Date
    04-20-2011
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2013
    Posts
    54

    Re: Conditional formatting + traffic light

    Ok thank you for that FDibbins.

    If I would like not to convert the number into a percentage, is it then possible to do the conditional formatting a different way?

    For example using this?

    Icon Sets JPEG.jpg

    Here I'm thinking if it's possible to insert an IF formula of some kind?

  4. #4
    Registered User
    Join Date
    04-20-2011
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2013
    Posts
    54

    Re: Conditional formatting + traffic light

    Think I managed to solve it myself :-)

    I created these three formulas to determine which cells to format:

    Rule 1: =(ABS(D15)/C15)>0,20 (RED)
    Rule 2: =(ABS(D15)/C15)>0,10 (YELLOW)
    Rule 3: =(ABS(D15)/C15)<0,10 (GREEN)

    However, I cannot use the icons for this so instead the cell goes all red, yellow or green.

+ 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. Conditional formatting traffic light formula
    By fumusic in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-14-2014, 09:09 AM
  2. [SOLVED] How to use traffic light conditional formatting icon set with dates.
    By rbac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2013, 08:19 PM
  3. Traffic Light Conditional Formatting
    By hzaz in forum Excel General
    Replies: 4
    Last Post: 05-01-2013, 02:10 PM
  4. Need help with traffic light conditional formatting icon set
    By jjospeh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 03:33 PM
  5. Conditional Formatting - Traffic light dates
    By zx561 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-19-2012, 02:51 PM
  6. Replies: 2
    Last Post: 06-20-2011, 11:03 AM
  7. Replies: 4
    Last Post: 11-08-2007, 11:53 AM

Tags for this Thread

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