Excel – Where condition?

calendar_today Asked May 2, 2011
thumb_up 15 upvotes
history Updated April 16, 2026

Question posted 2011 · +7 upvotes

I have two columns with data:

    A         B
1   HELIOS    AU
2   HELIOS
3   HELIOS    AU
4   SPARTA
5   HELIOS    AU

Countif(A..;"HELIOS") AND Countif(B..;"AU")

I can count the amount of HELIOS or SPARTA in a column. But how can I count the amount of AU per HELIOS or SPARTA?

Accepted answer +15 upvotes

Use COUNTIFS to count with multiple criteria, e.g.

=COUNTIFS(A:A, "SPARTA", B:B, "AU")

enter image description here

Top excel Q&A (6)

+15 upvotes ranks this answer #42 out of 167 excel solutions on this site — top 25%.