Arrays 对多张图纸上的多个值(在不同位置)求和
我正在将excel电子表格转换为Google工作表 电子表格需要搜索10张表格(标记为round1、round2、round3等),查找人名的实例,然后将其总数相加 excel公式为:Arrays 对多张图纸上的多个值(在不同位置)求和,arrays,google-sheets,sum,google-sheets-formula,sumifs,Arrays,Google Sheets,Sum,Google Sheets Formula,Sumifs,我正在将excel电子表格转换为Google工作表 电子表格需要搜索10张表格(标记为round1、round2、round3等),查找人名的实例,然后将其总数相加 excel公式为: =SUMPRODUCT(SUMIF(INDIRECT("round"&{1,2,3,4,5,6,7,8,9,10}&"!A:A"),$C2,INDIRECT("round"&{1,2,3,4,5,6,7,8,9,10}&"!B:B"))) 按照惯例SUMIF(范围、条件、范围),
=SUMPRODUCT(SUMIF(INDIRECT("round"&{1,2,3,4,5,6,7,8,9,10}&"!A:A"),$C2,INDIRECT("round"&{1,2,3,4,5,6,7,8,9,10}&"!B:B")))
按照惯例SUMIF(范围、条件、范围),我在Google表单中使用了以下内容:
=SUMIF({Round1!A2:A,Round2!A2:A,Round3!A2:A,Round4!A2:A,Round5!A2:A,Round6!A2:A,Round7!A2:A,Round8!A2:A,Round9!A2:A,Round10!A2:A},A2,{Round1!M2:M,Round2!M2:M,Round3!M2:M,Round4!M2:M,Round5!M2:M,Round6!M2:M,Round7!M2:M,Round8!M2:M,Round9!M2:M,Round10!M2:M})
但是我犯了一个错误。我怀疑我错过了一些非常简单的东西?试试:
=SUMIF(
{Round1!A2:A;Round2!A2:A;Round3!A2:A;Round4!A2:A;Round5!A2:A;Round6!A2:A;Round7!A2:A;Round8!A2:A;Round9!A2:A;Round10!A2:A},
A2,
{Round1!M2:M;Round2!M2:M;Round3!M2:M;Round4!M2:M;Round5!M2:M;Round6!M2:M;Round7!M2:M;Round8!M2:M;Round9!M2:M;Round10!M2:M})
尝试:
尝试此操作(结果将求和(A列*B列),其中B列=C2):
尝试此操作(结果将求和(A列*B列),其中B列=C2):
切换到Google Sheets的最佳功能之一是QUERY()函数 在A1中的新选项卡上尝试这一长公式
=查询({Round1!A2:M;Round2!A2:M;Round3!A2:M;Round4!A2:M;Round5!A2:M;Round6!A2:M;Round8!A2:M;Round10!A2:M}),“选择Col1,SUM(Col13),SUM(Col5),SUM(Col10),SUM(Col11),SUM(Col12),Count(Col1),AVG(Col13),SUM(Col13)/10,SUM(Col6),SUM(Col7),SUM(Col8),SUM(Col9),其中Col1''按Col1的顺序分组(Col1),Col1'desc'Col1',标签Col1'(Col13)‘总时间’、SUM(Col5)‘不带奖金的时间’、SUM(Col10)‘奖金/扣减’、SUM(Col11)‘奖金’、SUM(Col12)‘扣减’、计数(Col1)‘玩过的回合数’、平均(Col13)‘玩过的回合数’、SUM(Col13)/10‘平均时间’、SUM(Col6)‘命中率’、SUM(Col7)‘捕捉率’、SUM(Col8)‘捕捉率’、SUM(Col9)‘清除率’、0)切换到Google Sheets的最佳功能之一是QUERY()函数 在A1中的新选项卡上尝试这一长公式
=查询({Round1!A2:M;Round2!A2:M;Round3!A2:M;Round4!A2:M;Round5!A2:M;Round6!A2:M;Round8!A2:M;Round10!A2:M}),“选择Col1,SUM(Col13),SUM(Col5),SUM(Col10),SUM(Col11),SUM(Col12),Count(Col1),AVG(Col13),SUM(Col13)/10,SUM(Col6),SUM(Col7),SUM(Col8),SUM(Col9),其中Col1''按Col1的顺序分组(Col1),Col1'desc'Col1',标签Col1'(Col13)‘总时间’、SUM(Col5)‘不带奖金的时间’、SUM(Col10)‘奖金/扣减’、SUM(Col11)‘奖金’、SUM(Col12)‘扣减’、计数(Col1)‘玩过的回合数’、平均(Col13)‘玩过的回合数’、SUM(Col13)/10‘平均时间’、SUM(Col6)‘命中率’、SUM(Col7)‘捕捉率’、SUM(Col8)‘捕捉率’、SUM(Col9)‘清除率’、0)您收到了什么错误?为什么不直接使用excel公式?请提供一个指向google工作表的链接,以便我们可以复制/测试它。excel公式只读取第一个表。google工作表在这里:您收到了什么错误?为什么不直接使用excel公式?请提供指向google工作表的链接,以便我们可以复制/测试it、 excel公式只读取第一个表格。谷歌表格如下:
= sumproduct(
sum(
arrayformula(
if (
{
'round1'!B:B;
'round2'!B:B;
'round3'!B:B;
'round4'!B:B;
'round5'!B:B;
'round6'!B:B;
'round7'!B:B
} = C2,
{
'round1'!A:A;
'round2'!A:A;
'round3'!A:A;
'round4'!A:A;
'round5'!A:A;
'round6'!A:A;
'round7'!A:A
} , 0
)
)
),
sum(
arrayformula(
if (
{
'round1'!B:B;
'round2'!B:B;
'round3'!B:B;
'round4'!B:B;
'round5'!B:B;
'round6'!B:B;
'round7'!B:B
} = C2,
{
'round1'!B:B;
'round2'!B:B;
'round3'!B:B;
'round4'!B:B;
'round5'!B:B;
'round6'!B:B;
'round7'!B:B
} , 0
)
)
)
)