英文:
Summing only particular rows in Excel with correspondence to a different column
问题
没有办法只对与另一列中特定“flavour”对应的值进行求和吗?(在这种情况下,我在黄色中标记了一个这样的情况)?我考虑使用COUNTIF函数,但为了使其工作,我需要另一个参数。
是否有其他函数可以用于此目的?
英文:
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")
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论