+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting Question

  1. #1
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    Conditional Formatting Question

    I am curious is it possible to use conditional formatting to change the background of a cell to possibly five different colors depending on the data that ends up in that cell? For instance with this problem, I'm developing a point scale 1 thru 5-each point has a different color. Depending on the average result, which will automatically get 3 points, I'm assigning 2 points for 10% less than average, 1 point for 20% less than average and visa versa, 4 points for 10% above average and 5 points for 20% above average. Even though until all the data is entered, is there a way to have my data cells color code themselves depending on where each falls depending on where the "average" data falls, from whatever data is entered. I hope this makes sense... In my example I have two columns, shift column & mileage. Mileage will not be a criteria to be graded but is used for this example only. Underneath these columns are three of the five point scales. I used "average" is yellow, 20% above is orange and 20% below is red. Depending on where my average result ends up I'd like my data cells i the Mileage column to have the background fill to the appropriate grade scale. Due to decimal issues anything a .5 or up should round up for clarity reasons. Thanks in advance.. I hope I'm not making this more complicated than it needs to be...
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363
    Maybe this can help
    Please Login or Register  to view this content.
    Denis

    Please always attach the sample workbook without sensitive information when asking for help

    To add a module
    Press Alt + F11 (this is the Visual Basic Environment)
    Insert Menu, select Module
    Past code there
    Close Visual Basic Environment (X)

  3. #3
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    957

    I didn't seem to work for me

    Thanks Jetted for your assistance. My attachment file was a very basic model of what I'm trying to accomplish if it is in fact possible. I have no personal knowledge of vb coding. I followed your instructions and nothing happened. I'm sure its more of an error on my part, but thanks anyways.

+ 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