+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting Averages to Exclude values of 0

  1. #1
    Registered User
    Join Date
    06-08-2012
    Location
    Huntington, New York
    MS-Off Ver
    Excel 2010
    Posts
    11

    Conditional Formatting Averages to Exclude values of 0

    I have four cells that already have conditional formatting to highlight the two that are above average in red and the two that are below average in green. sometimes the cells have a value of $0, but the conditional formatting includes that as a result will highlight those cells in green. I am looking to exclude the $0 from the formatting so that it will only highlight the cells with actual values in them.

    Thanks for the help

    - Matt.

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

    Re: Conditional Formatting Averages to Exclude values of 0

    You don't give us much to go on. No cell references, no formulae, no Conditional Formatting formulae, no sample workbook. How would you have us proceed?


    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
    06-08-2012
    Location
    Huntington, New York
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Conditional Formatting Averages to Exclude values of 0

    test.xlsx

    Sorry about that, in the attached example, the formatting is set up for B11:E11 that any value above the average is higlighted in red and the values below the average are in green. I'd like to set it so it excludes the $0.

  4. #4
    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,510

    Re: Conditional Formatting Averages to Exclude values of 0

    You'd need something like: =AND(B2<>0,B2<$F2) rather than the "simple" Below Average.


    Regards, TMS

  5. #5
    Registered User
    Join Date
    06-08-2012
    Location
    Huntington, New York
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Conditional Formatting Averages to Exclude values of 0

    Thank you for your quick response, maybe i'm not describing this right. I'm only worried about data in column B through E, lets say as an example B11 through E11. I'd like to have the conditional formatting set up so that any value in those four cells that's above the average is red, below is green, but that the '0' values are excluded in that conditional formatting. With F11, i was able to figure out the average and exclude the '0' values no problem, its just the conditional formatting that's the issue.

    Thanks again,

    - Matt

  6. #6
    Registered User
    Join Date
    06-08-2012
    Location
    Huntington, New York
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Conditional Formatting Averages to Exclude values of 0

    actually, i figured it out myself, thank you for your input, it helped me determine this, I just used the function in the cell =IF(SUM(B4:B10)=0,"",SUM(B4:B10)). No change to the conditional formatting was needed. Thank you for your help.

    - Matt

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

    Re: Conditional Formatting Averages to Exclude values of 0

    Please see your updated example.

    The same formatting is applied to all the weekly values.


    Regards, TMS

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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