How do I combine 2 COUNTIF formulas??

G

Guest

These are my formulas: =COUNTIF(Mo!D8:D53,"PM") =COUNTIF(J8:J53,"100%")
Both formulas work how I want them to separately, but I can't combine them.
I need them to only count if both are true. I need it only to count if it is
a "PM" and "100%", it needs to be both! Help!
 
G

Guest

Try this:

=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53="100%"))

If the values in ColJ are numeric, then you may need to use this:
=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53=100%))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro
 
G

Guest

It didn't work, came up #NAME?

Ron Coderre said:
Try this:

=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53="100%"))

If the values in ColJ are numeric, then you may need to use this:
=SUMPRODUCT((Mo!D8:D53="PM")*(J8:J53=100%))

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro
 
B

Bob Phillips

#NAME sounds unlikely. Did you spell the function correctly?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
G

Guest

It did work!! There was a problem in the spreadsheet, not the formula! Thanks
guys you've been great.
 

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