在Excel中,只需与不同列对应的特定行进行求和。

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

Summing only particular rows in Excel with correspondence to a different column

问题

没有办法只对与另一列中特定“flavour”对应的值进行求和吗?(在这种情况下,我在黄色中标记了一个这样的情况)?我考虑使用COUNTIF函数,但为了使其工作,我需要另一个参数。

是否有其他函数可以用于此目的?

英文:

在Excel中,只需与不同列对应的特定行进行求和。

Is there any way to sum values from 'units sold' column only for values that correspond to a particular 'flavour' in the other column (in this case, I labeled one such case in yellow)? I was thinking of using the COUNTIF function, but in order for that to work, I'd need another argument.

Is there any other function that I may use for this purpose?

答案1

得分: 2

使用 SUMIFS() 函数如下所示:

=SUMIFS(B2:B200, C2:C200, "chocolate")

英文:

Use SUMIFS() function like-

=SUMIFS(B2:B200,C2:C200,"chocolate")

huangapple
  • 本文由 发表于 2023年3月7日 16:58:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/75659817.html
匿名

发表评论

匿名网友

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

确定