简体   繁体   English

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

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

Imagine that we have this table enter image description here想象一下,我们有这个表在此处输入图像描述

How can i count apples?我怎么数苹果?

I hope this will be useful to you我希望这对你有用

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

Use SUMIF as follows,按如下方式使用 SUMIF,
=SUMIF (range, criteria, [sum_range]) =SUMIF(范围,标准,[sum_range])
In your case this is在你的情况下,这是
=SUMIF(A2:A5,"Apples",B2:B5) =SUMIF(A2:A5,"苹果",B2:B5)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 EXCEL:如何计算多个单元格中的值模式? - EXCEL: How do I count a pattern of values across multiple cells? 如何在Excel中计算非相邻的空白单元格? - How can I count non adjacent blank cells in excel? 如何在Excel中连续计数单元格,但仅对相邻单元格计数一次 - How can I count cells in a row but only count adjacent cells once in Excel Excel:如何对相同数字的单元格旁边的单元格求和 - Excel: How to sum up cells that are next to cells of the same number 如何计算两行中有多少个单元格相同? - How can I count how many cells are the same in both rows? 在Excel中,如何计算空白单元格的数量,直到下一个非空白单元格 - In Excel, How do I count the number of blank cells until the next non-blank cell 如何在Microsoft Excel中删除包含特定值的单元格 - How can I remove cells containing specific values in Microsoft Excel Excel,如何将多个电子表格链接到具有更改值的单元格? - Excel, how can I link multiple spreadsheets to cells with changing values? 如何在Excel中将具有相同值的多个单元格分组 - How to group multiple cells with the same values in Excel 如何根据旁边单元格中的值在excel中为单元格着色? - How can I colour a cell in excel based on the values in the cell next to it?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM