need formula to add two different criteria in a range

M

Meenie

I want to count the number of "yes" in a range and the number of "n/a" in a
range and get that total.
If I enter =sum(if(range,"yes"+"n/a")) I get "#Value"
If I enter =sum(if(range,"yes")+(range,"n/a")) I get "formula contains an
error"
I've tried several variations on this with sum, sumif, count, counta,
countif...
Can someone please give me a clue?? :D
Thanks, Meenie
 
B

Bernard Liengme

=COUNTIF(A1:A100,"yes")
if n/a was entered as text
=COUNTIF(A1:A100,"n/a")
if n/a was enterd with the NA() function
=SUMPRODUCT(--(ISNA(A1:A100)))

best wishes
 
M

Meenie

yes and n/a are both entered as text.
I know how to count one or the other, how to I count the total occurence of
both within the range?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top