+ Reply to Thread
Results 1 to 16 of 16

Conditional Formatting 3 color scale

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

    Lightbulb Conditional Formatting 3 color scale

    Hi helpers,

    I have attached my sheet.

    What I need to be incorporated in the sheet is under the title "Number of sick days 2011" is some kind of bar chart that for each individual show the number of sick days they have had so far in 2011. As I updated the number of sick days in column D, I expect the bar to also change.

    I also thought that Conditional Formatting might be used to for example show a green/yellow/red bar based on the following criteria: Green<10, 10<yellow>14 and red>14.

    How on earth do it set that up so it also looks good in my sheet?
    Attached Files Attached Files
    Last edited by Kagesen; 04-26-2011 at 11:42 PM.

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

    Re: Conditional Formatting 3 color scale

    Excel 2007 doesn't really have in-cell charts... Excel 2010 does...

    Here is an alternative attached, if it pleases you.

    I basically inserted a bunch of narrow columns and applied conditional formatting to produce a gantt chart in the small area... you can add more columns if you want to show more (or keep it as if you want to define a point where the dates exceed allowable).

    The conditional format applied to range $E$5:$DS$25 is:

    =AND($D5<>"",COLUMNS($E5:E5)<=$D5)
    Attached Files Attached Files
    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 Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Conditional Formatting 3 color scale

    Here is an example of 2 conditional formats - one to give data bars and one to give colour gradients.
    Attached Files Attached Files

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

    Re: Conditional Formatting 3 color scale

    I guess I was outsmarted.... didn't think of the data bars... not enough playing around with the "special" conditional formatting introduced in 2007....

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Conditional Formatting 3 color scale

    I guess I was outsmarted
    Not even on my BEST day!

    @ Kagesen

    The colour gradient doesn't allow for specific colours for specific ranges so the alternative would be something like the attached which uses the 3 typical CF's for the 3 specified ranges and colours.
    Attached Files Attached Files

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

    Re: Conditional Formatting 3 color scale

    I think that is where I went offtrack. The original request was for a green/yellow/red scale and I started looking at traffic lights. I knew the data bars didn't offer colour, so steered away... and instead I came up with my alternative, which didn't even account for the tricolor request...

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Conditional Formatting 3 color scale

    You threw me when you said 2007 didn't have it because I've never used it before but was pretty sure there was something that was at least similar. So I looked for it and was surprised to find the bars didn't offer much in the way of control re colour gradient or width.

    @ Kagesen
    Here is one more tweak to soften the look of the full fill alternative (applied only to the green in this example):
    Attached Files Attached Files
    Last edited by Cutter; 04-26-2011 at 10:15 AM.

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

    Re: Conditional Formatting 3 color scale

    Hi Cutter and NBVC,

    Thanks for your valuable input. I will go with the data bars since they represent what I want to show with the sheet. I had actually tried to play around with the conditional formatting but didn't find a good solution but your suggestions both look good.

  9. #9
    Registered User
    Join Date
    04-27-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Conditional Formatting 3 color scale

    Brilliant, really helped me in my work! Great contribution!

  10. #10
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Conditional Formatting 3 color scale

    @ Kagesen
    You're welcome. Thanks for the "scales tap".

  11. #11
    Registered User
    Join Date
    05-03-2012
    Location
    Northampton
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Conditional Formatting 3 color scale

    I need to apply conditional formatting depending on a number e.g. If 5 >2 it goes green if 5=5 it goes amber and if 2< 5 it goes red. Any ideas?

  12. #12
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Conditional Formatting 3 color scale

    Deleted.....see next post
    Last edited by Cutter; 05-03-2012 at 08:10 AM.

  13. #13
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Conditional Formatting 3 color scale

    @EWSSchool

    Welcome to the forum. Please read the forum rules (especially rule #2). This thread is more than a year old.

    And you may want to rephrase your question. There is no IF about what you're saying. 5 IS > 2, 5 DOES = 5 and 2 IS <5.

  14. #14
    Registered User
    Join Date
    05-03-2012
    Location
    Northampton
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Conditional Formatting 3 color scale

    Well that was very rude! I needed a quick answer and Microsoft Office Help suggested this website. I am completing coursework and I don't want to sit here for hours reading some rules for a website I'm going to use once.

  15. #15
    Registered User
    Join Date
    05-03-2012
    Location
    Northampton
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Conditional Formatting 3 color scale

    Thank you very much for your help.

  16. #16
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Conditional Formatting 3 color scale

    I think you need to grab a dictionary and look up the meaning of rude. There is nothing rude about my response. You may also want to look up the meaning of lazy. You may find your picture there.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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