Use of COUNTIF and AND function together

W

westhol

Hi,

Is there a way I can use the COUNTIF and AND function in one formula.
e.g.
IF any of the cells of column a displays AAAA AND on the same lin
column B displays BBBB. I like to have the total fihure of thos
lines.
I've tried =COUNTIF(AND(A:A,"AAAA",B:B,"BBBB") but unfortunately thi
does not work.

Regards,

Loui
 
F

Frank Kabel

Hi Louis

COUNTIF (as well as SUMIF) only accepts one condition. You can use
SUMPRODUCT for more than one condition

=SUMPRODUCT((A1:A999="AAAA")*(B1:B999="BBBB"))

Frank
 

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