COUNTIF Function

J

Jill V

I have a spreadsheet with the following information:

Active? Type
Y GI
N AD
Y AD
N GI

I need to count how many AD with Y are in the sheet. Would I be using a
COUNTIF, DCOUNTA, or something else entirely? Please help!
 
S

ShaneDevenshire

Hi Jill,

You weren't on the wrong track! DCOUNT would have worked also, the formula
is simplier, but you need a criteria range in the spreadsheet.

Also, in 2007 you could have used the new function COUNTIFS notice the S on
the end, it allows multiple criteria.
 
A

Ashish Mathur

Hi,

You could also try the following array formula (Ctrl+Shift+Enter)

SUM(IF((A11:A14="Y")*($B$11:$B$14="AD"),1))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com
 

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