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.