+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting + macros

  1. #1
    Registered User
    Join Date
    04-04-2014
    Location
    Salt Lake City
    MS-Off Ver
    Excel 2010
    Posts
    7

    Conditional formatting + macros

    I have a large set of data that contains both negative and positive values pulled from a macro. There are several zero values, but only because the data isn't currently available. I can't just delete the zeros, because I still need the formula, in case the information becomes available.

    The problem: I'm using a 3-color conditional formatting to show the bottom 10% and top 10%. But the zeros skew the formatting, because they all show red and take up the bottom 10% red formatting.

    Can I have the conditional formatting apply to all cells except zeros while still calculating the percentiles?

  2. #2
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Conditional formatting + macros

    Yes but would it be easier to change the output formula to if 0 then value="" Blank.

    You can also format all cells to hide zeros with this custom format:
    0;-0;;@

    or your formatting can include Your conditional formula AND >0

    Are you able to attach an example?


    Shelton A.
    If Helpful, Add Reputaion!

  3. #3
    Registered User
    Join Date
    04-04-2014
    Location
    Salt Lake City
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Conditional formatting + macros

    The custom format is great! Except the conditional formatting still picks up the "values" and colors the cells red. The >0 idea won't work, because there are negative numbers as well. I will work on posting an example!

  4. #4
    Registered User
    Join Date
    04-04-2014
    Location
    Salt Lake City
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Conditional formatting + macros

    Actually, no example necessary. I added an if function and it is now leaving zeros blank (it's just pretty nasty and long). Thanks for the ideas!

  5. #5
    Valued Forum Contributor
    Join Date
    09-01-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    324

    Re: Conditional formatting + macros

    You'r welcome. Glad you got your desired result.

+ 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] Macros and conditional formatting
    By skalus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-25-2013, 08:38 AM
  2. [SOLVED] Help with Macros and/or Conditional Formatting.
    By Inez15 in forum Excel General
    Replies: 5
    Last Post: 11-08-2012, 01:11 PM
  3. Conditional formatting and macros.
    By johnfar in forum Excel General
    Replies: 0
    Last Post: 12-15-2011, 09:41 AM
  4. Conditional Formatting Macros
    By njadam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2011, 02:58 AM
  5. Conditional Formatting And Macros
    By Dominic_Hodgson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2007, 05:33 AM

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