Search code examples
excelexcel-formulaworksheet-functiondcount

DCOUNT function doesn't return the correct result


I tried hard but couldn't found out why the formula in cell S10 below returns value 0 instead of 1, could you explain?

enter image description here


Solution

  • @gtwebb has a simple solution but just adding an A is also simple:

    =DCOUNTA(O5:Q19,"COLOR",R1:T2)  
    

    and will not produce the same result as counting NO if C2 values in the relevant range are matched against one or more blanks for COLOR.

    DCOUNTA