Sum cells if values in other column are equal.

huangapple go评论55阅读模式
英文:

Sum cells if values in other column are equal

问题

我需要一个公式来求和另一列中引用相同的所有金额。所以:

金额 引用 总和
100 1 2410
2300 1 2410
410 2 0
-410 2 0
10 1 2410
-100 3 -100

尝试使用SUMIF找出解决办法,但没有成功。

英文:

I need a formula to sum all ammounts where references from another column are the same. So:

Amount Reference SUM
100 1 2410
2300 1 2410
410 2 0
-410 2 0
10 1 2410
-100 3 -100

Tried to figure out a way with sumif, no luck.

答案1

得分: 1

Use simple SUMIFS() function.

=SUMIFS(A:A,B:B,B2)

Or SUMIF().

=SUMIF(B:B,B2,A:A)

英文:

Use simple SUMIFS() function.

=SUMIFS(A:A,B:B,B2)

Or SUMIF().

=SUMIF(B:B,B2,A:A)

Sum cells if values in other column are equal.

huangapple
  • 本文由 发表于 2023年5月22日 17:03:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76304543.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定