+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting Color Scale More Than One Rule On Same Cells OR 4-Color Scale

  1. #1
    Registered User
    Join Date
    10-18-2020
    Location
    USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO
    Posts
    2

    Question Conditional Formatting Color Scale More Than One Rule On Same Cells OR 4-Color Scale

    Hello, this is the first time I'm using this forum but I am desperate. I use conditional formatting for tracking many things and I like to use gradients to visually represent information. But the only options for color scales are 2 and 3 color options. I have a situation where I have 4 different categories and so I need to have 4 different colors going across a gradient.

    Example: 0 = red, 10 = orange, 20 = yellow, 30 = green, etc with gradients going across them

    I have a 3-color scale on the cells, so I use a 2-color scale to make the last bit that is needed, but then one of them overrides the other. Even if I have 0-19 for one rule and 20-30 for another rule, if the 0-19 is listed first then the 20-30 rule just doesn't show up at all.

    Is there ANY way that I can have a gradient that goes from red to orange to yellow to green?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Conditional Formatting Color Scale More Than One Rule On Same Cells OR 4-Color Scale

    You can always use =and() in your formula.

    =A1<10 Red

    =And(A1>9,A1<20) Orange

    =And(A1>19,A1<30) Yellow

    =A1>29 Green
    Attached Files Attached Files
    Last edited by mehmetcik; 10-18-2020 at 01:27 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    10-18-2020
    Location
    USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO
    Posts
    2

    Re: Conditional Formatting Color Scale More Than One Rule On Same Cells OR 4-Color Scale

    This isn't a gradient, but rather 4 different solid colors. The reason I need a gradient is because, for example, if I am tracking something and had 90-100 = green and 80-89 = yellow, the difference between an 89 and a 90 really isn't much and yet it has a whole different color, but 80 is much different than 89 and it has the same color.

    But thank you for answering, I take it that there is not actually any way to do what I want to here?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2505
    Posts
    27,250

    Re: Conditional Formatting Color Scale More Than One Rule On Same Cells OR 4-Color Scale

    What you want cannot be done with built-in features.

    This is a VBA solution. However, it creates permanent formatting, not conditional formatting. In this example, click the button to apply formatting to E2:E42. Change the code to match the range you actually want to color. Use column G and H starting in row 2 to put the colors you want to use and the starting value to use that color. The code then interpolates the colors between those points. The last starting number will result in any number larger than that getting that color (i.e., in your example, 31, 52, and 12,043 will all be green). You can use any number of colors but use strictly ascending values or you will get weird results.
    Attached Files Attached Files

+ 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. Help with Conditional Formatting - Due Date Color Scale
    By ExcelCMMguy in forum Excel General
    Replies: 3
    Last Post: 09-22-2020, 10:37 AM
  2. Conditional Color Scale Formatting Not Working
    By Merf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-24-2015, 10:03 AM
  3. 3-Color-Scale Conditional Formatting
    By savetrees in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-05-2015, 08:45 AM
  4. [SOLVED] Conditional Formatting like Color Scale but doing it via Interior.Color
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2015, 06:36 AM
  5. Color Scale Conditional Formatting
    By dev.jajati in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2014, 04:10 AM
  6. Help with conditional formatting 3 color scale
    By ab0mbs in forum Excel General
    Replies: 1
    Last Post: 09-24-2013, 12:43 PM
  7. Conditional Formatting 3 color scale
    By Kagesen in forum Excel General
    Replies: 15
    Last Post: 05-03-2012, 08:50 AM

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