+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting (do not want to overwrite the existing format when zero is present)

  1. #1
    Registered User
    Join Date
    01-15-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    96

    Conditional Formatting (do not want to overwrite the existing format when zero is present)

    I have conditional formatting set to change the cell color based on the value of the cell. These all work great unless the value is zero, which I basically don't want the cell to change color at all, but just leave all existing formats. This doesn't seem to work. It changes the default light gray to white each time.

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    2,994

    Re: Conditional Formatting (do not want to overwrite the existing format when zero is pres

    Without futher information I should say try something like this:
    Please Login or Register  to view this content.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16/365
    Posts
    52,239

    Re: Conditional Formatting (do not want to overwrite the existing format when zero is pres

    Does your cell actually contain the value ZERO (0) or is it empty/blank/contains a formula that results in ""?
    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

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting (do not want to overwrite the existing format when zero is pres

    Make sure that you change the ; to a , when you write the formula that popipipo gave you. (some regions use ; instead of the , that we are used to in North America).
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Conditional Formatting (do not want to overwrite the existing format when zero is pres

    In my example 0, blank and "" were were not changed by Conditional Formatting.

    If you have blank cells, 0 value cells and "" value cells these will work for values greater than 0
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Combine the above with this for values <0 and it should work for you.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A8 has formula resulting in ""
    Capture3.JPG
    Last edited by newdoverman; 01-15-2016 at 05:40 PM.

+ 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: 2
    Last Post: 05-13-2013, 02:41 AM
  2. Replies: 0
    Last Post: 03-13-2013, 11:59 AM
  3. VBA colour overwrite conditional formatting
    By kawaitang in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2013, 08:32 AM
  4. [SOLVED] Copy Conditional Format only without over writing existing format
    By RobNorwichUK in forum Excel General
    Replies: 2
    Last Post: 01-22-2013, 12:20 PM
  5. overwrite data already present
    By Taxalik in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-11-2012, 12:21 PM
  6. Excel 2007 : Paste Overwrite for Conditional Formatting
    By AdAstraGames in forum Excel General
    Replies: 0
    Last Post: 07-03-2009, 02:30 AM
  7. Replies: 3
    Last Post: 04-26-2007, 06:11 AM
  8. Conditional Format if data present
    By jpkeller55 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2005, 01:21 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