+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting not applying

  1. #1
    Registered User
    Join Date
    06-19-2013
    Location
    Townsville, QLD
    MS-Off Ver
    Excel 2003
    Posts
    2

    Conditional Formatting not applying

    Hi There,

    I am having great difficulties with my conditional formatting. I have two columns that need to be compared - "C" is a static value while "E" is calculated by user input in another sheet.
    I am using the condition =IF(E5<C5,1,0) ***E5 turns red if less than C5*** applied to "E5:E27", however C5 keeps changing to #REF! and it doesn't apply.
    The sheet is protected so I tried to unprotect it in vba but it still wont apply. I also tried to write a macro to do the colour change but I have just made a mess of it.

    Could someone please help. It is the very final part of a workbook due to go live by the end of the week.

    This is what my messed up code looks like -

    Please Login or Register  to view this content.
    Last edited by Lovelylou79; 07-15-2013 at 05:59 PM. Reason: To Comply with Rule #3

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: Conditional Formatting not applying

    It looks like you are using the formula:
    Please Login or Register  to view this content.
    to write a 1 or 0 into the cell if E5 < C5. You cannot write values in a cell using conditional formatting. If you just want E5 red when less than C5, use:
    Please Login or Register  to view this content.
    . This will also turn E5 Red if it is empty and C5 isn't; so you can fix that with:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    06-19-2013
    Location
    Townsville, QLD
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Conditional Formatting not applying

    Thanks, That does work but when I save and close the workbook, then reopen it, the previously red cells are no longer red. I need this to be an automatic thing whenever I choose to view the sheets("Availability Report").
    Why doesn't it work every time?

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: Conditional Formatting not applying

    Did you put the formula in Conditional Formatting for the sheet or in a macro?
    Is the sheet being updated automatically via formulas or macros?
    What are the sheet protection options selected?
    Last edited by protonLeah; 07-15-2013 at 11:04 PM.

+ 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. Conditional formatting on non-empty cells - VBA
    By kotonikak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2013, 02:57 PM
  2. Replies: 1
    Last Post: 09-02-2010, 12:39 AM
  3. Applying Conditional Formatting to an Entire Row
    By ltmaiyk in forum Excel General
    Replies: 4
    Last Post: 02-19-2010, 01:46 PM
  4. Applying Conditional Formatting to Data Validation
    By kcstewart in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-28-2007, 06:46 PM
  5. Applying conditional formatting to ODD rows
    By SirSFZ in forum Excel General
    Replies: 0
    Last Post: 03-31-2005, 10:46 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