+ Reply to Thread
Results 1 to 12 of 12

Condition Format when Cell Value = "0" but not "BLANK"

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Condition Format when Cell Value = "0" but not "BLANK"

    Hello All,
    I'm looking for a formula for Condition Format when Cell Value = "0" (zero) but not applied for BLANK

    Regards,
    tt3
    Last edited by tuongtu3; 11-21-2015 at 09:41 PM. Reason: Solved

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Condition Format when Cell Value = "0" but not "BLANK"

    maybe this....
    =A1=0

    If this does not work for you, can you give some more details and maybe a sample of what you are working with, and what you want?
    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

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

    Re: Condition Format when Cell Value = "0" but not "BLANK"

    Try

    =AND(A1=0,A1<>"")

  4. #4
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Condition Format when Cell Value = "0" but not "BLANK"

    Hi,
    I used that one but did not work.

    Regards,
    tt3

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Condition Format when Cell Value = "0" but not "BLANK"

    Quote Originally Posted by tuongtu3 View Post
    Hi,
    I used that one but did not work.

    Regards,
    tt3
    which 1?
    Can you give more detail?

  6. #6
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Condition Format when Cell Value = "0" but not "BLANK"

    Hi,
    Two of them did not work. I want Range H15:H515 turn RED when their value = 0 but no RED if cell is BLANK

    Regards,
    tt3

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

    Re: Condition Format when Cell Value = "0" but not "BLANK"

    Change the A1 references to H15

    =AND(H15=0,H15<>"")

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Condition Format when Cell Value = "0" but not "BLANK"

    is the cell actually blank - as in there is nothing in it? Or does it contain a formula?

    upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

    Jonmo's suggestion (better than mine), should work?

  9. #9
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Condition Format when Cell Value = "0" but not "BLANK"

    Please checl sample attached cell H15:H25. Cell is blank (no formula) then user enter value into it.

    Regards,
    tt3
    Attached Files Attached Files

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

    Re: Condition Format when Cell Value = "0" but not "BLANK"

    You have to use the option "Use a formula to determine which cells to format" when creating a new rule.
    And use the formula
    =AND(H15=0,H15<>"")

  11. #11
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Condition Format when Cell Value = "0" but not "BLANK"

    @FDibbins & Jonmo1: Thank you very much for your help.

    Regards,
    tt3

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Condition Format when Cell Value = "0" but not "BLANK"

    Happy to help, thanks for the feedback

+ 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: 5
    Last Post: 07-16-2015, 10:14 AM
  2. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. Date format of just "st" "nd" "rd" and "th" with text included
    By notrandom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2013, 05:45 PM
  5. [SOLVED] Condition Format between "Blank" and "Zero"
    By tuongtu3 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-24-2012, 08:42 PM
  6. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  7. Replies: 3
    Last Post: 12-14-2006, 01:36 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