+ Reply to Thread
Results 1 to 8 of 8

Formatting with traffic lights

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Formatting with traffic lights

    Hi

    I would like to use a formatção with icons (traffic lights), in column "G"

    It turns out that I need to be obeyed in accordance with the criteria below.

    Green (30...) 30%
    Yellow (20-29) 20%
    Red (0-19) 0%

    See my attachment
    Attached Files Attached Files
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Formatting with traffic lights

    Try changing the type to Number and then make the Value

    Green .3
    Yellow .2
    HTH
    Regards, Jeff

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formatting with traffic lights

    a little laggy with the internet today. i have the same answer as jeffrey, but something additional as i saw your range applied to seems to be parts by parts. i assume you use the CTRL key to select.

    1. select from G2:G29
    2. go to Home -> Conditional Formatting -> New Rule -> Format all cells based on their values -> Format Style: Icon Sets
    3. Change both Type: Number
    4. green when value is >= 0.3
    5. yellow when value is >=0.2
    6. OK

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Formatting with traffic lights

    Hi
    it's a good idea, but i can't use this way.

    I need percent format (value cell).

    Is there other option?

    thank you!!

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Formatting with traffic lights

    .3 and .2 is a percentage, it's just in a decimal form.

    Did you try the suggestions? How is it not producing the correct result?

  6. #6
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Formatting with traffic lights

    Hi.
    It did not work the way I need.

    how do I use icon within a formula?

    excel have this option?

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Formatting with traffic lights

    Quote Originally Posted by marreco View Post
    It did not work the way I need.
    How did it not work the way you intended? Did you get a wrong result?

    The two answers you were given work by turning G2 "yellow".

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Formatting with traffic lights

    I finally got the icons to work properly:

    Select G2:G29.

    Change the format of the selection to NUMBER.

    Click on Conditional Formatting, Choose Icon Sets and choose the Stop Lights.

    Click on Conditional Formatting, Click on Manage Rules.

    Select the rule that you just made and click on Edit Rule

    For the Green Light select >= and enter .3 and type NUMBER

    For the Yellow Light select >= and enter .2 and type NUMBER

    Click OK, OK

    On the Home tab (your column of values is still selected) in the Number Group, click on the formatting field and choose PERCENTAGE. All the numbers in the selection will now be % and G2 should now be YELLOW.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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