+ Reply to Thread
Results 1 to 2 of 2

Cell References in Conditional Formatting Formula not changing

  1. #1
    Registered User
    Join Date
    10-24-2022
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2021
    Posts
    1

    Cell References in Conditional Formatting Formula not changing

    Hi,

    I'm in the process of making a semi-automated schedule maker for my workplace. I have a feature I'm working on where a formula within conditional formatting will highlight the cell red when a shift is entered that violates a set of constraints. The process I've attempted has gone like this:

    I highlight the cell I'm formatting, (in this case C1) and select conditional formatting based on a formula.

    I enter this formula: =OR(A1<B1, B1=0)
    Then, I select the formatting, which just involves a light red fill if true.

    This formula works as expected. The problem is that when I drag the formatting down the column, the cell references do not change. I'll click on C5 conditional formatting, which should contain the formula: =OR(A5<B5, B5=0). Instead, it contains the original formula, referencing Row 1.

  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
    44,086

    Re: Cell References in Conditional Formatting Formula not changing

    No, you'll never see that. It always refers to the top left cell of the range selected.
    Last edited by TMS; 10-24-2022 at 06:29 PM.
    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


+ 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. Copy the conditional formatting formula rules with the corresponding cell references
    By vvishalb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2022, 02:49 AM
  2. Cell References In Conditional Formatting Formula Not Updating Correctly
    By Big.Moe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2022, 12:58 AM
  3. Replies: 2
    Last Post: 09-07-2018, 10:07 AM
  4. Conditional Formatting Formula that references relatively and absolutely?
    By TSWalsh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-25-2013, 08:09 AM
  5. [SOLVED] Conditional formatting: Copying styles and formula, but with different cell references
    By tays01s in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-26-2013, 02:34 AM
  6. Cell references error with recorded Conditional Formatting (Formula) macro
    By nlexcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2012, 01:38 PM
  7. Excel 2007 : Conditional Formatting Cell References
    By HangMan in forum Excel General
    Replies: 1
    Last Post: 03-21-2012, 01:23 PM

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