+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting not always working.

  1. #1
    Registered User
    Join Date
    02-09-2021
    Location
    Minnesota
    MS-Off Ver
    Office 365
    Posts
    18

    Conditional Formatting not always working.

    Added Conditional Formatting to cells in column Q based on data in column Q and P.

    If column Q is less than P the cell in column Q turns red. Formula: =Q4<P4
    If column Q is greater than or equal to P the cell in column Q turns green. Formula: =Q4>=P4

    Several cells are working properly (ie., Q3, Q10, Q13, Q14) but some cells in column Q that are = P, remain red. See: Q4,Q5,Q7,Q18 and Q19.


    All cells in column Q are formatted Accounting, decimal places = 0 and symbol = None

    Thanks Everyone in Advance!!
    Attached Files Attached Files

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

    Re: Conditional Formatting not always working.

    You have duplicated an individual rule for every cell. Just use one rule that applies to all cells.

    In the cells that are giving you the unexpected color, the numbers are not equal. For example, P4=86.25 and Q4=86.00. So Q4<P4 and turns red. If you only care about integer values then you have to round the numbers either in your worksheet formulas, or the conditional formatting rule. Formulas don't care about what value is displayed in the cell, they care about what value is stored there. For example, in P3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy down

    There is no reason to begin a formula with +
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    same as
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Also there is no need to use merged cells here. It prevents me from selecting in the data in column Q. I have unmerged the cells, and the sheet still looks exactly the same. Merging cells is almost always a bad idea.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-09-2021
    Location
    Minnesota
    MS-Off Ver
    Office 365
    Posts
    18

    Re: Conditional Formatting not always working.

    Thanks for your help 6StringJazzer!!!

+ 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] Conditional formatting not working as i would like
    By Danielt949 in forum Excel General
    Replies: 18
    Last Post: 09-14-2022, 03:11 AM
  2. [SOLVED] Why is my conditional formatting not working?
    By RollingDice in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2018, 03:55 PM
  3. Conditional Formatting now working
    By tkdlance in forum Excel General
    Replies: 3
    Last Post: 06-01-2018, 04:19 PM
  4. [SOLVED] Conditional Formatting Not Working
    By kencoburn in forum Excel General
    Replies: 7
    Last Post: 08-19-2017, 09:48 AM
  5. conditional formatting not working
    By arnab0711 in forum Excel General
    Replies: 3
    Last Post: 06-27-2012, 04:55 AM
  6. Conditional Formatting Not Working
    By mycon73 in forum Excel General
    Replies: 14
    Last Post: 07-16-2011, 01:39 PM
  7. VBA conditional formatting not working
    By LarryC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-26-2008, 09:43 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