求和列子字符串的电子表格行值相加

时间:2017-08-15 19:42:46

标签: excel-formula google-sheets spreadsheet

我知道跨行或列的基本求和。我现在陷入了一个稍微复杂的情况,我希望根据列中的多个子字符串求和。见附图。我需要对特定列(B)具有主题标签的所有行的数字(列C)求和。期望的结果看起来像列E& F图像。

此处使用相同的表格https://docs.google.com/spreadsheets/d/18nld3quzXqppxw_JWEpSxXvIRcMa1Fv_1WsWwwPfPFE/edit?usp=sharing

Example of input type and desired output

1 个答案:

答案 0 :(得分:2)

USE SUMIF()

=SUMIF(B:B,"*" & E3 & "*",C:C)

适用于Excel和GoogleSheets

enter image description here enter image description here

相关问题