count passed or failed

N

Neri

im having a problem getting the correct formula for this one. i used
=IF((DATA!$G$2:$G$5000-DATA!$F$2:$F$5000)=(DATA!$K$2:$K$5000-DATA!$J$2:$J$5000),"Passed","Failed")
and =COUNTIF(DATA!$L$2:$L$5000, "(e-mail address removed)") and it gave me the desired
output. but the problem is, i have to get the total number of passed and
failed for each person in my team. i can't seem to find the exact formula to
combine those conditions.

please help me, thanks!
 
B

Bernie Deitrick

Neri,

=SUMPRODUCT(((DATA!$G$2:$G$5000-DATA!$F$2:$F$5000)= (DATA!$K$2:$K$5000-DATA!$J$2:$J$5000))
*(DATA!$L$2:$L$5000="(e-mail address removed)"))

Take out any line breaks that your news reader or web interface puts in...

HTH,
Bernie
MS Excel MVP
 
B

Bernie Deitrick

Ooops.

And for failed, change the = to <>:

=SUMPRODUCT(((DATA!$G$2:$G$5000-DATA!$F$2:$F$5000)<> (DATA!$K$2:$K$5000-DATA!$J$2:$J$5000))
*(DATA!$L$2:$L$5000="(e-mail address removed)"))

HTH,
Bernie
MS Excel MVP
 
N

Neri

You're so great! Thank you very much! :)



Bernie Deitrick said:
Ooops.

And for failed, change the = to <>:

=SUMPRODUCT(((DATA!$G$2:$G$5000-DATA!$F$2:$F$5000)<> (DATA!$K$2:$K$5000-DATA!$J$2:$J$5000))
*(DATA!$L$2:$L$5000="(e-mail address removed)"))

HTH,
Bernie
MS Excel MVP
 

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