+ Reply to Thread
Results 1 to 9 of 9

Glitch with Conditional Formatting

  1. #1
    Registered User
    Join Date
    06-06-2018
    Location
    ASDF
    MS-Off Ver
    2016 32-bit
    Posts
    6

    Glitch with Conditional Formatting

    Hey guys,
    I'm having a problem with conditional formatting where I've instructed Excel to highlight cells pairs containing unique values with a yellow color scheme. I've done this in many places throughout the spreadsheet, but in two particular locations, for whatever reason, conditional formatting is highlighting the cell pairs when values are duplicates and I'm not sure what's causing the issue.

    I've checked the rules for each cell pair, and they seem to look okay...

    I'm including a few screenshots:
    Capture 1.PNG
    I'm using red line segments to show the call pairs that become highlighted when the values don't match. As you can see, all of them work fine except for the one that is activated in the encircled area as both values are $706.81.

    Oddly, if I hard enter $706.81 into the cell on the left, the highlighting goes away. This does NOT happen if I hard enter $706.81 into the cell on the right.

    Here is another image of the error that shows the conditional formatting rule used for this cell pair:
    Capture 2.PNG

    This occurs in one other place in the spreadsheet, and the dollar amounts are exactly the same as the ones in the above screenshots (the cells in the above screenshots reference the cells in the other place where this error is occurring).

    Anyways, if anyone has every experienced/troubleshot this error before I would really appreciate some help... I'm actually pretty embarrassed to show this because my finances are in an abysmal state right now...

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Glitch with Conditional Formatting

    Hi Milleby,

    First comment, you should avoid posting personal or sensitive data.

    Second, we can't see the condition you have used - just the range, so it's not possible to assist.

    Third, it would be better to attach a desensitisedcopy of the workbook. That makes it easier to see what is happening.

    Regards

    David

  3. #3
    Registered User
    Join Date
    06-06-2018
    Location
    ASDF
    MS-Off Ver
    2016 32-bit
    Posts
    6

    Re: Glitch with Conditional Formatting

    A few details have been altered, but I did have to leave many things unedited for the sake of demonstrating the problem. In any case, I'm pretty confident that there's nothing unsafe included in that post. For now I'm going to post a screenshot of the formula and hope that that will be enough of a clue. If necessary, I will make a desensitized version of the spreadsheet and post it up here, but that would be a pretty time consuming task that I'd prefer to avoid if possible.
    Capture 3.PNG
    This is simply a standard unique values rule.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,438

    Re: Glitch with Conditional Formatting

    Have you check the actual content of the 2 cells. Is it possible they look the same due to rounding?
    Cheers
    Andy
    www.andypope.info

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Glitch with Conditional Formatting

    As a starting point if you put in a cell =c19=d19 if the values are not unique (eg the same) it will return true otherwise false. What does it evaluate when the "error" occurs? I suspect that as it went away when you typed it, the value in c19 is not what you say it is. It is the underlying value not the format the value is being displayed in

  6. #6
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Glitch with Conditional Formatting

    A couple of observations!

    You have some merged cells which can cause some unexpected results. Avoid these.

    Instead of pointing to just C19:D19 - have you tried setting the range to C9:D24?

    Regards, David

  7. #7
    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,946

    Re: Glitch with Conditional Formatting

    Oddly, if I hard enter $706.81 into the cell on the left, the highlighting goes away. This does NOT happen if I hard enter $706.81 into the cell on the right.
    That kinda tells me that the left cell is NOT exactly 706.81, but the RHS 1 is. do a quick check =left-cell=right-cell FALSE tells you they are not the same
    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

  8. #8
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Glitch with Conditional Formatting

    Combining what Ford, Andy, davsth and myself have said.

    Instead of using the Format Unique Cells option, use a formula (next row down in the rule type box).

    Enter =ROUND($C9,2)<>ROUND($D9,2) - this takes care of rounding differences where one of the cells is not strictly to two decimal places.

    If you copied this down over the whole range, your totals would also be highlighted. I guess it depends on how you want to present your data.

    I hope this helps, please let me know!

    Regards,

    David

    If this has been helpful
    - Please click on the *Add Reputation button at the bottom left.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  9. #9
    Registered User
    Join Date
    06-06-2018
    Location
    ASDF
    MS-Off Ver
    2016 32-bit
    Posts
    6

    Re: Glitch with Conditional Formatting

    Hey guys, so it turns out that one of the values was actually 706.8099999999 or something, so rounding it worked. I'm far too busy right now to obsess over what's causing this, but I am baffled because all of the calculations that went into determining the value of that cell consisted of addition and subtraction between simple dollar amounts. I looked over the precedent cells pretty thoroughly and didn't see anything that went beyond the 2nd decimal place. No idea what could possibly be causing this.

+ 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] Override conditional formatting (in general, without changing the conditional formatting)
    By Stormin' in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2017, 07:15 AM
  2. [SOLVED] Conditional Formatting Glitch? Any ideas?
    By billyjo182 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2017, 01:50 PM
  3. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  4. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  5. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  6. Excel 2010 Conditional Formatting Glitch
    By sploeger0709 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-06-2013, 09:32 AM
  7. Replies: 2
    Last Post: 01-13-2013, 03:38 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