문제

I am using the countif function to count the number of times the word "yes" occurs in a range. The range only accepts "yes" and "no" values through data validation from a list. The result is always 0 irrespective of what values I give the range. Any help?

도움이 되었습니까?

해결책 2

As I mentioned in comments, it seems that range G7:G13 contains "yes"/"no" with additional leading/trailing spaces. Try next formula:

=SUMPRODUCT(1*(TRIM(G7:G13)="YES"))

다른 팁

Try using wildcards

=COUNTIF(G7:G13,"*YES*")

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top