+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting according to given values

  1. #1
    Registered User
    Join Date
    07-06-2015
    Location
    Tampere, Finland
    MS-Off Ver
    2010 & 2013
    Posts
    8

    Conditional formatting according to given values

    Heya,

    I'm trying to apply conditional formatting on a table, based on the values given in a different table. I've attached a picture of an exemplary situation; the left table shows the average values for certain results in regards of vehicles(cars,bikes etc) from all the manufacturers in my database, divided into groups by their years of manufacture. The right table shows the same results for a certain manufacturer only.

    So then, I'd like to have the table on the right to be formatted according to how the values differentiate from the table on the left. I.e. "cost X" on the right table should be colored red if it's above the value found for the "cost X" in the left table. Respectively, it should be colored green if the value is lower than the comparing value in the left. Awesome bonus would be if I could make it so, that the colors change brightness after how much the values on the right differ from the given averages. For an example; lower than average at all - light green, more than 10% below the average - green, more than 20% below the average - dark green. And the same for the reds on the higher than- side. (these percentual values might be different in reality, for in some cases even 50% below/above is not that much, but you get the idea)

    Hopefully this was not too vaguely explained or in a wrong section. Thank you in advance for all possible answers.

    -JackXcel
    Attached Images Attached Images

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

    Re: Conditional formatting according to given values

    Here is a simple example of what you are trying to do. The range on the right will have highlighted the values that are greater or less than the same relative cell in the range on the left. The range on the left is the opposite of the range on the right.
    The first basic Conditional Formatting rule applied to the range on the right (select the range on the right) then the formatting is chosen:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will highlight if greater than the cell in the left range:

    The range on the left (selected) to have the opposite effect in that if less than the cell in the right range, highlight in the format of your choice.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If cells in both ranges not blank but equal value:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you want to have different shading for different value differences, you will need to have a rule for each difference that you want for each range. The formulae would be along these lines =h3-b3=1 H3-B3=2 etc.....a whole bunch of rules.
    Attached Files Attached Files
    <---------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

  3. #3
    Registered User
    Join Date
    07-06-2015
    Location
    Tampere, Finland
    MS-Off Ver
    2010 & 2013
    Posts
    8

    Re: Conditional formatting according to given values

    Alright, thanks for the explanation and especially the example table! After a while I managed to figure it out and format the table as I wanted.

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

    Re: Conditional formatting according to given values

    Thank you for the feedback. I'm glad that you have something that you can work with.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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 for a value that is between two values
    By Katie.Schomer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2015, 03:59 PM
  2. [SOLVED] Conditional Formatting with IF for 2 values
    By Dee2015 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2015, 11:47 AM
  3. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  4. Replies: 1
    Last Post: 09-25-2013, 10:05 AM
  5. Conditional Formatting for a set of values
    By modest_16081982 in forum Excel General
    Replies: 3
    Last Post: 07-30-2007, 09:08 PM
  6. Conditional Formatting... w/values?
    By gunkie in forum Excel General
    Replies: 3
    Last Post: 10-19-2006, 04:35 AM
  7. Values w/conditional formatting
    By Fred Timmons in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-04-2005, 12:06 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