Excel,我如何计算同名单元格旁边的值

Excel, how can i count values ​next to cells with the same name

假设我们有这个 table enter image description here

我怎么数苹果?

希望对你有用

=SOMMEPROD((A2:A5="Apple")*(B2:B5))

使用SUMIF如下,
=SUMIF(范围,标准,[sum_range])
在你的情况下,这是
=SUMIF(A2:A5,"苹果",B2:B5)