+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting: Changing colors of cells based on reference cell values

  1. #1
    Registered User
    Join Date
    12-05-2016
    Location
    Haugesund, Norway
    MS-Off Ver
    Office 365
    Posts
    1

    Question Conditional formatting: Changing colors of cells based on reference cell values

    Hello.

    I have a sheet With several columns, from A to L, for various numbers, F and L which are important for what I want to do. The range is from 5 to about 200.

    In column F, I have my starting point, and I use column L as a "final result" column. I have a basic formula duplicated in the range of column L, to compare it to F, however it takes LOTS of time to do this manually.

    Apologies if the References to formatting functions and such doesn't sound right (I use a Norwegian install of 365).

    Here is what I have done so far With conditional formatting:

    *I basically used "Cell value EQUALS", and put in the entire range of the column to color the entire L-range green, if it is a match to F, of course this happens on a per cell basis (I also added a rule to ignore blanks).
    *I used "Cell value NOT EQUAL TO" in order to color the entire L-range yellow, if it is not a match to F, still on a per cell basis. *****The first thing I would like to do, is to change this so that the coloring only happens if the values I'm comparing is within +/- 1% of the Reference value in F, but not an exact match.
    ***Secondly, I would like to change the color of the range to red if the difference is greater than +/-1%.

    I know I can do it for each cell, I'm wondering if I can make a rule for the entire column to save lots of time. (will also help in the event of future updates to the sheet.

    Hope this isn't too confusing.

    Thanks,
    TRS85

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,164

    Re: Conditional formatting: Changing colors of cells based on reference cell values

    You would probably use a formula rather than "cell value equals"

    Suggest you post a sample workbook.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,102

    Re: Conditional formatting: Changing colors of cells based on reference cell values

    yes you can write some rules for those conditions and tolerances

    L has to be +/- 1% of F

    assuming row starts at 2

    then a conditional formatting rule would be

    OR(L2 < F2*0.99, L2 > F2*1.01)

    tobe outside the 1% range

    then a 2nd rule to be within the range - and different colour

    And(L2 >= F2*0.99, L2 <= F2*1.01)

    if you post a sample of the data
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. Replies: 1
    Last Post: 10-04-2016, 05:17 AM
  2. Changing cells and column chart colors based on cell colors
    By HDeuce in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-03-2016, 11:43 AM
  3. Replies: 3
    Last Post: 10-21-2015, 03:51 PM
  4. Conditional Formatting Colors Based on Max Values
    By larryg003 in forum Excel General
    Replies: 2
    Last Post: 01-19-2015, 11:07 AM
  5. Replies: 4
    Last Post: 11-18-2014, 04:12 AM
  6. [SOLVED] Conditional Formatting (changing color) in one cell based on text in two cells
    By Chadyoung1 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-14-2013, 04:26 AM
  7. Replies: 9
    Last Post: 03-24-2008, 03:04 PM

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