简体   繁体   中英

Excel: adding value if the other cell contains certain value

here is the problem which is pretty self explaining.

I need excel to run through each row in A column and if it's 'volvo' (in this case) i need it to add the value next to it.
The sum of values should be in the cell below (A5).
The poor solution which I came up with and does not work is
=SUM(IF(ISNUMBER(SEARCH("volvo";A1:A3));B1:B3;0))
Thank you for every reply!

使用SUMIFS()

=SUMIFS(B:B,A:A,"volvo")

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