+ Reply to Thread
Results 1 to 6 of 6

Conditional formatting issue

  1. #1
    Registered User
    Join Date
    10-16-2008
    Location
    Skokie
    Posts
    23

    Conditional formatting issue

    Hello-

    I am having an issue where I have a conditionally formatted cells where is the value = 0, then to highlight green, if not, then highlight red. Even though a bunch of the cells are returning a value of 0, it is being highlight red. Please advise.

    The cells in question are in the first tab named "VALIDATE." Cells C7, C9, and C13 are returning correct formatting, but cells C6,C8,C10,C11,C12,C14 and C15 are not.

    Any help would be greatly appreciated.
    Attached Files Attached Files

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

    Re: Conditional formatting issue

    Select the cells and increase the number of visible decimal places (to about 15). You'll see you have some very small negative numbers from the calculations.


    Regards, TMS
    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


  3. #3
    Registered User
    Join Date
    10-16-2008
    Location
    Skokie
    Posts
    23

    Re: Conditional formatting issue

    TMS-

    Thank you, you are bringing me closer to the solution. Can you tell why these small negative numbers are happening? I increased the visible decimal places on all the cells in the workbook, and none, besides in the validate tab are showing very small negative numbers.

    Thanks,

  4. #4
    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: Conditional formatting issue

    Trevor, it's being caused by that binary error.

    Look at C6...
    c6=IF($B6=$A6,'Actual & Forecast'!B$3-Deposits!B$5,"")
    =-0.00000000000023

    but...
    ='Actual & Forecast'!B$3-Deposits!B$5
    =0.000000000000000000000000
    'Actual & Forecast'!B$3=1,452.350000000000000
    Deposits!B$5=1,452.350000000000000

    Freaky

    Can be solved using ...
    =IF($B6=$A6,ROUND('Actual & Forecast'!B$3-Deposits!B$5,2),"")
    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

  5. #5
    Registered User
    Join Date
    10-16-2008
    Location
    Skokie
    Posts
    23

    Re: Conditional formatting issue

    FDibbins, thanks! That solved the issue, but yeah, still kind of freaky.

    Thanks again.

  6. #6
    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,755

    Re: Conditional formatting issue

    That, as you say, is extremely weird.

    As soon as you bring in the IF comparison, and it doesn't seem to matter how that is done, you get the issue.

    Played about for a while but I can't see a way around other than using ROUND.

    Regards, TMS
    Attached Files Attached Files

+ 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. Custom formatting issue using conditional formatting
    By wrongway15 in forum Excel General
    Replies: 2
    Last Post: 07-13-2014, 03:18 PM
  2. Conditional formatting issue
    By davidingilbert in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2013, 05:19 PM
  3. Conditional Formatting Issue
    By bumperbg in forum Excel General
    Replies: 0
    Last Post: 07-06-2011, 04:19 AM
  4. Conditional Formatting VBA issue
    By kiboodez in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-29-2008, 01:53 PM
  5. Conditional formatting issue
    By Cramer19 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-31-2007, 01:29 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