+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting formula cell reference not incrementing properly

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    Cleveland, TN
    MS-Off Ver
    Excel 2007
    Posts
    53

    Conditional formatting formula cell reference not incrementing properly

    I'm using the following formula in A1: =DATEDIF(A1,TODAY(),"M")>=18
    When I try to use format painter to copy the conditional formatting to B1:B20, the formula sticks at =DATEDIF(B1,TODAY(),"M")>=18 all the way across.
    It works when I paint one cell at a time.
    Is there another way to copy down/across conditional formatting to not have "paint" one cell at a time?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: Conditional formatting formula cell reference not incrementing properly

    In Excel 2007 forward, the formula will be based on the cell in the upper left corner of the range, and the formula will be same for every cell. This can be confusing when you are looking at B20 and the formula refers to B1, but you have to look at the applicable range of B1:B20, not just the one cell. Think of B1 as "the cell to which this formula applies" rather than "B1". Similar logic applies if you use absolute references. For example, $B1 would be "the cell in column B of the row containing this cell".

    Bottom line is that your formula will work the way that you want it to.

    If this isn't clear I can launch into a longer explanation.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    08-16-2012
    Location
    Cleveland, TN
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Conditional formatting formula cell reference not incrementing properly

    Ohh I see it now. Thanks for pointing that out, i was getting frustrated!
    Much appreciated!

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: Conditional formatting formula cell reference not incrementing properly

    Here is a more detailed explanation I wrote, maybe this will help.

    http://seiglefamily.com/excel/condformat.html

+ 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. Incrementing cell reference within formula upon a new row insert within a table
    By m_arkle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2014, 04:16 PM
  2. automatically incrementing a conditional formatting
    By PMAl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-15-2014, 06:45 PM
  3. Conditional Formatting Formula Not Working Properly
    By Oscar Martin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2014, 08:59 AM
  4. Incrementing the Column Reference in an If Formula
    By HangMan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2013, 04:21 PM
  5. [SOLVED] incrementing formula reference by 7
    By Patti in forum Excel General
    Replies: 2
    Last Post: 01-20-2005, 05:06 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