【问题标题】:Google Sheets formula to calculate sum of values in one column which match multiple columns in another sheet谷歌表格公式计算一列中与另一张表中的多列匹配的值的总和 【发布时间】:2019-05-02 10:32:53 【问题描述】: 我需要表格 2 D 列中的公式,它将查找表格 1 A 列中 B 列和 C 列的值并计算 C 列中值的总和。例如,D2 将返回 36。 表 1: 表 2 【问题讨论】: 标签: google-sheets array-formulas google-sheets-formula google-sheets-query 【解决方案1】: =ARRAYFORMULA(IFERROR(VLOOKUP(A2:A, QUERY({Sheet1!B:C}, "select Col1, sum(Col2) where Col1 != '' group by Col1", 0), 2, 0))) 【讨论】: 谢谢。如果我有一个 Sheet3,其中包含 A 列中的 url 列表和 B 列中的交易数量列表,那么 Sheet2 D2 中将使用什么公式来计算 B2 和 C2 中 url 的总交易?