+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting

  1. #1
    Registered User
    Join Date
    10-08-2012
    Location
    Chicago ⇄ L.A.
    MS-Off Ver
    365
    Posts
    30

    Conditional Formatting

    Hello,

    I have a spreadsheet where I can't seem to figure out why conditional formatting does not work in a certain cell.
    Basically, I've formatted cells so that:
    If VALUE >0, then (red)x
    If VALUE ≤0, then (green) ✓

    It appears to work on one cells with values at 0 (L18) but if I toggle some of the numbers elsewhere, particularly L24 to make that amount 0, I get a (red)x and not a (green)✓

    Can somebody show me what is it that I am doing wrong?

    Thanks in advance.
    Last edited by s0nginmyheart; 03-15-2016 at 03:36 PM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting

    I would suspect that the value in your cell is not EXACTLY 0.
    It could be 0.00001 or something like that.
    Possibly due to floating point precision issues with storing decimal numbers.

    Try adjusting your formula in column L to
    =ROUND(SUM(C11-K11),2)

  3. #3
    Registered User
    Join Date
    10-08-2012
    Location
    Chicago ⇄ L.A.
    MS-Off Ver
    365
    Posts
    30

    Re: Conditional Formatting

    Thank you. I plugged in the following formula in L24:
    =ROUND(SUM(C24-K24),2)
    and it makes cell L24 green now, however if the value is exactly 0, I just get a "$-" value now to represent zero. How can I get that back to a $0.00 figure?

    Also, why in the formula do you do the part below (in bold)? ETA - Googled this --- Is the ,2 for two decimals?
    =ROUND(SUM(C24-K24),2)
    Last edited by s0nginmyheart; 03-15-2016 at 03:53 PM.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting

    That is in the standard cell formatting.
    In the standard cell formatting, choose custom and put
    _($* #,##0.00_);_($* (#,##0.00);_($* #,##0.00_);_(@_)

    The 2 is telling ROUND how many decimal points to round the value to.
    You can change that to whatever number you like 0 to 15

  5. #5
    Registered User
    Join Date
    10-08-2012
    Location
    Chicago ⇄ L.A.
    MS-Off Ver
    365
    Posts
    30

    Re: Conditional Formatting

    Great. I formatted it back to Currency. This works. Thank you so much!

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting

    You're welcome.

+ 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. Replies: 9
    Last Post: 03-07-2016, 10:39 AM
  2. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  3. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  4. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  5. 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
  6. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 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