+ Reply to Thread
Results 1 to 2 of 2

Cell References In Conditional Formatting Formula Not Updating Correctly

  1. #1
    Forum Contributor Big.Moe's Avatar
    Join Date
    03-15-2012
    Location
    Corea, Maine, USA
    MS-Off Ver
    Excel 2010
    Posts
    244

    Cell References In Conditional Formatting Formula Not Updating Correctly

    Hello,

    I have a spreadsheet that tracks our wholesale bait sales. Each tab represents one type of bait and tracks the sales and orders of that particular type of bait. This workbook has been working wonderfully for a couple years, but after adding a column (col. J), which tabulates a running daily total of sales, I have found a couple glitches.

    One glitch I solved by revising the formulas in column J, from "IF(A226=A225,J225+F226,F226)" to "IF(A226=INDIRECT("A"&ROW()-1),INDIRECT("J"&ROW()-1)+F226,F226).

    That issue I described in the following post:
    https://www.excelforum.com/excel-gen...-inserted.html

    Although I fixed that issue, I have now discovered I have the same issue with the formula I used in the conditional formatting of that same column J. Once I insert a new line, the formula references are not updated correctly and the highlighting is all off.

    Here is the conditional formatting rule:

    Conditional Formatting.jpg

    I have tried applying the "INDIRECT("A"&ROW()-1)" solution above to the formula in my conditional formatting, but I haven't been able to word my formula correctly for it to work.

    Hopefully, my description of the issue is clear and any help in restructuring that conditional formatting formula would be greatly appreciated.

    Thank you.
    Attached Files Attached Files
    Last edited by Big.Moe; 10-11-2022 at 03:10 PM.

  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,938

    Re: Cell References In Conditional Formatting Formula Not Updating Correctly

    When using a formula in CF, you just need to formulate it to return either TRUE or FASE. You dont need to use =IF blah blah etc
    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

+ 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] VBA Code to read the names/attributes of PDFs in a directory and then populate columns
    By TnD_Guy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-31-2018, 10:30 PM
  2. read XML tags and its attributes with VBA code
    By goutamlaveti in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-29-2013, 02:59 AM
  3. Replies: 3
    Last Post: 11-03-2008, 06:16 AM
  4. Replies: 0
    Last Post: 08-21-2008, 12:59 AM
  5. Using a lookup based upon cell attributes
    By Barnapkin in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-12-2007, 06:28 AM
  6. [SOLVED] copying all of a row & Attributes
    By RjS, CISSP in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2006, 05:40 PM
  7. Changing cell attributes (such as color) if the cell today's date.
    By jbarringer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2005, 03:51 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