Closed Thread
Results 1 to 2 of 2

Conditional formatting - Relative references (2010)

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Conditional formatting - Relative references (2010)

    OK, so I have 2 columns. Column "N" contains a date of service which ranges from '09 to '13. Column "AQ" contains a date that must be within 12months prior to the date of service (Col. N). I attempted to apply conditional formatting to the range $AQ$8:$AQ$257 using the following formula:

    =IF(YEAR($N8)=2012,IF($AQ8>$N8-366,0,1),IF($AQ8>$N8-365,0,1))

    * The YEAR() function is a fail-safe to account for the leap year during the time period I am working with (2012).

    The result is supposed to fill red any "1" results which are the dates that are greater than 12 months (errors). The formula works 100% if I use it in a helper column. However, if I use the formula as a conditional formatting the relative cell references are not changing. The only way to get the conditional formatting to apply properly is to either change the formula for every cell in my range (8:257) by hand or by copying and pasting the formatting by hand one cell at a time. This works but ends up creating a rule for every cell I want to do this in which is overbearing when viewing all conditional formatting in the worksheet.

    Can anyone help me understand why the relative cell references are not changing when I use the painter tool or drag down the cell to apply my conditional formatting to my entire range?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,614

    Re: Conditional formatting - Relative references (2010)

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    http://www.excelforum.com/excel-form...es-2010-a.html

    Thread Closed.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to for converting absolute references to relative references in formulas
    By edspyhill01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2014, 02:09 AM
  2. Replies: 3
    Last Post: 10-08-2013, 09:34 AM
  3. Conditional Formatting with relative referencing?
    By Drake07 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-23-2013, 03:51 PM
  4. Replies: 4
    Last Post: 08-25-2012, 11:41 AM
  5. Excel 2007 : Relative Conditional Formatting in a PivotTable
    By triskaidekaphobia in forum Excel General
    Replies: 2
    Last Post: 05-15-2012, 03:54 PM
  6. Replies: 5
    Last Post: 09-19-2010, 05:33 AM
  7. Relative references for condtional formatting within a Pivot Table
    By Matt X in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-18-2006, 02:45 PM
  8. [SOLVED] Conditional Formatting Bug w/ relative formula?
    By Joe HM in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-16-2005, 07:06 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