I'm trying to check if a cell is:
If value equals 0. I have tried:
=IF( NOT( ISBLANK($D:$D) ) & $D:$D=0 ,TRUE,FALSE)
=IF( AND( NOT( ISBLANK($D:$D) ),$D:$D=0) ,TRUE,FALSE)
I am use Excel 2013 with Conditional Formatting rule: Use a formula to determine which cells to format > Format values where this formula is true
What am I doing wrong? The problem is, the IF($D:$D=0)
recognises cells with value 0 and those which are blank as true . I only want it to recognise 0 values. Not blank.
I think this is what you're looking for:
=AND(COUNTBLANK($D1)=0,$D1=0)
Note that when you apply it to the whole column, each cell will only look at its respective row. You'll want to keep the reference of $D1 instead of using $D:$D
您也可以使用此公式
=($D1<>"")*($D1=0)
Before the rule specifying "0" you should add the rule "cell contains empty (blank) value". Then set the format to "no formatting" and then select "stop if true".
以下内容将起作用,您不必担心AND和NOT如何组合在一起。
=IF(ISBLANK(A1),TRUE,IF(A1=0,TRUE,FALSE))
format only cells that contains -> (Specific text)... Don't use (cell value)--> then type "0" with no quotation marks
this will format only cells with 0 inside it, blank cells will not be formatted
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.