开发者

Excel - Where condition?

I have two columns with data:

    A         B
1   HELIOS    AU
2   HELIOS
3   HELIOS    AU
4   SPAR开发者_JAVA百科TA
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?


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

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

Excel - Where condition?


Take a look at sumproduct function

http://www.meadinkent.co.uk/xlsumproduct.htm

=MATR.SOMMA.PRODOTTO((A1:A5="HELIOS")*(B1:B5="AU"))
=MATR.SOMMA.PRODOTTO((A1:A5="SPARTA")*(B1:B5="AU"))

These are the functions for my italian excel version. :)

I think that english one is

=SUMPRODUCT((A1:A5="HELIOS")*(B1:B5="AU"))
=SUMPRODUCT((A1:A5="SPARTA")*(B1:B5="AU"))


DCOUNT should do what you're looking for.

It does require a label row, however, but then it allows stuff like this:

Excel - Where condition?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜