+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting exclude 0?

Hybrid View

  1. #1
    Registered User
    Join Date
    10-08-2009
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    2

    Conditional formatting exclude 0?

    I want to conditionally format the highest and lowest number in a range of numbers in a single column (Column C). The numbers in Column C are created by a formula that simply adds the data in the two cells in the same row of Columns A & B.

    Numbers are entered into columns A & B daily. The column C formula has been filled into enough rows to complete the entire year. Since future days do not have numbers filled in for Columns A & B, Column C for those days results in a sum of 0.

    I have set up conditional formatting for Column C so the cell of the highest number in filled in green. I want to conditionally format Column C so the cell with the lowest number is filled red, but it automatically fills all the cells for future days in Column C in red because the sum displayed there is 0.

    Is there a way to exclude the 0 sum cells? The date is filled in as simple text, rather than formatted as a day. Is that the answer?
    Last edited by TJ Mustang; 10-08-2009 at 11:42 PM.

  2. #2
    Registered User
    Join Date
    10-08-2009
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Conditional formatting exclude 0?

    I take back what I wrote about the dates being formatted as text. They are, in fact, formatted as dates

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,700

    Re: Conditional formatting exclude 0?

    If you have data in C1:C500 then select that range and use this formula in conditional formatting

    =C1=MIN(IF(C$1:C$500>0,C$1:C$500))

    format as required

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Conditional formatting exclude 0?

    Hi,

    you could avoid having the zero there in the first place, by creating the sum only when both A and B have values, like

    =IF(OR(ISBLANK(A1),ISBLANK(B1)),"",B1+A1)

    Then you can keep your current conditional formatting. Otherwise, there'd have to be some sophisticated calculations with ranks etc going on in the conditional formula. I think just avoiding the zeros is easier.


    hth

  5. #5
    Registered User
    Join Date
    05-29-2017
    Location
    London, England
    MS-Off Ver
    Microsoft Office Excel 2007
    Posts
    28

    Re: Conditional formatting exclude 0?

    Quote Originally Posted by teylyn View Post
    Hi,

    you could avoid having the zero there in the first place............. Otherwise, there'd have to be some sophisticated calculations with ranks etc going on in the conditional formula. I think just avoiding the zeros is easier.

    hth
    Sorry to post in a old thread, but this tip has helped me plenty after having spent a long futile time conditional formatting a column that was having zero values.

    Now, having avoided the zeroes using this suggestion, it was a breeze to arrive at a very simple solution.

    Thank You, teylyn !

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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