Simple Formula Fix - Countif and "and" statements

EE Pros,

I have a simple formula that I cannot make work.  I'm trying to count the selections that meet two criteria.  I've tried to make this selection by using a Countif statement and an "and" statement.  But it doesn't select on that criteria.

=COUNTIF(J11:J115,"Sales Rep")*(AND(COUNTIF(B11:B115,"Yes")))

Any help would be appreciated.

B.
Bright01Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saurabh Singh TeotiaCommented:
You can use this...

=COUNTIFS(J11:J115,"Sales Rep",B11:B115,"Yes")

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Naresh PatelFinancial AdviserCommented:
you have to use "COUNTIFS" not "COUNTIF"

Thanks
Naresh PatelFinancial AdviserCommented:
Zings....late by whole 90Secs.
Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

Naresh PatelFinancial AdviserCommented:
Seen your post after I had posted as browser not auto refresh ... ;)
ProfessorJimJamMicrosoft Excel ExpertCommented:
=COUNTIFS(J11:J115,"Sales Rep",B11:B115,"Yes")
Saurabh Singh TeotiaCommented:
Lol..its okay...

In additional you can also use this...

=Sumproduct((J11:J115="Sales Rep")*(B11:B115="Yes"))

Both will give the same results...

Saurabh...
ProfessorJimJamMicrosoft Excel ExpertCommented:
oh, i should have refreshed the page
Naresh PatelFinancial AdviserCommented:
Same thing here.
Bright01Author Commented:
Asking another question now on counting Filtered fields.

Thank you,,,, great teamwork!

b.
Naresh PatelFinancial AdviserCommented:
I guess Saurabh deserved all points.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.