简体   繁体   中英

Excel FORMULA to sum values in multiple rows at the column with a specific word

maybe it is easy but I can't get it to work :(

I'm trying to make an Excel formula to do the following:

  • Find a specific column with the preset value
  • sum the values of rows/cells at this column that also contains a specific word.

For Example: the table below: Excel 表格示例

I want to find the column that has the value "Jul" and then go through this column's rows and sum all the rows that are "Pizza"

I hope someone could help me!

Thank u very much!

SUMPRODUCT() would be best for this case. Try-

=SUMPRODUCT((B2:H7)*(A2:A7=C11)*(B1:H1=D10))

在此处输入图像描述

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