简体   繁体   中英

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 (range, criteria, [sum_range])
In your case this is
=SUMIF(A2:A5,"Apples",B2:B5)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM