Question

Is it possible to use the COUNTIF function - or any other function - to find all values which aren't equal to "yes" or "no" values?

I am able to use COUNTIF to locate all "yes" and "no" answers (also also all blank cells), but I want to extract the "dirty" data from some survey results and include it in the "Missing" total.

I have tried to search for all values that are not equal to "yes" or "no" (by way of using the NOT function), but this failed to work.

Can this be done?

UPDATE:

Please note that I also suspect that COUNTIFS could do the trick, but am unsure exactly how to lay the function out.

Was it helpful?

Solution

=COUNTIFS may be best (if available) but with =COUNTIF I'd suggest:

=COUNTA(A:A)-COUNTIF(A:A,"Yes")-COUNTIF(A:A,"No")-COUNTIF(A:A,"=""").

If you are counting yes and no anyway then you could use the results from elsewhere in place of parts of the above formula.

OTHER TIPS

You should use COUNTIFS instead since you need multiple criteria. Try using "<>yes" and "<>no" for the criteria for COUNTIFS.

Something like =COUNTIFS(A1:A5,"<>yes",A1:A5,"<>no")

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top