+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting - changing cell reference

  1. #1
    Registered User
    Join Date
    07-22-2016
    Location
    Nowhere
    MS-Off Ver
    2013
    Posts
    5

    Conditional formatting - changing cell reference

    First post - thank you for any help you can give.

    I have a row of cells from A1:G1, and I want them to highlight in red if they're below cell I1, and green if they're above cell J1. Did that - easy.

    Now I want to do the same thing with the same columns, but changing the rows (I2 and J2 are different than I1 and J1).

    Is this possible without conditionally formatting over and over?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Conditional formatting - changing cell reference

    Hi, welcome to the forum

    So you will have 4 rules?

    Or do you just ant to change where the rule references (if so, maybe just move/drag the 1st 2 refs down?)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-21-2014
    Posts
    92

    Re: Conditional formatting - changing cell reference

    I am assuming that by "below cell I1" and "above cell J1" you mean below/above the values inside those cells.
    Have the "Applied to" ranges for each condition have cell $A$1 as the upper left-most cell, then you could enter the custom condition formulas as:

    =A1<$I1 for red
    =A1>$J1 for green

    The dollar sign makes the I and J columns absolute and unchanging no matter where the formula is applied. The columns/rows without the dollar signs change relative to where they are applied.
    So for cell B2, the applied condition will be " =B2<$I2" although it would be a part of the "=A1<$I1" rule.

  4. #4
    Registered User
    Join Date
    07-22-2016
    Location
    Nowhere
    MS-Off Ver
    2013
    Posts
    5

    Re: Conditional formatting - changing cell reference

    wow - such a simple solution... thanks! You'd think I would've noticed the dollar signs in the conditional formatting rules menu

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Conditional formatting - changing cell reference

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

    I note also that you dont show where you are from. While we dont really need the exact location, it does help if we know the country - different counties use different formats, which we wont know if you dont show us

+ 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. [SOLVED] Changing cell colours using conditional formatting
    By davezb in forum Excel General
    Replies: 2
    Last Post: 07-17-2012, 05:08 PM
  2. Replies: 5
    Last Post: 08-18-2011, 05:03 AM
  3. changing conditional formatting based on a reference
    By altsean06 in forum Excel General
    Replies: 1
    Last Post: 05-12-2011, 06:17 PM
  4. Conditional Formatting - reference another cell value
    By momossy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-17-2010, 10:44 AM
  5. Conditional Formatting Base on Changing Cell Value
    By starbwoy in forum Excel General
    Replies: 2
    Last Post: 12-17-2009, 12:15 PM
  6. Replies: 2
    Last Post: 09-21-2008, 04:47 AM
  7. Replies: 2
    Last Post: 11-02-2007, 12:03 PM
  8. cell reference changes and conditional formatting
    By Maggie Boby in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2006, 11:45 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