Google sheets Google电子表格sumif添加了字符串比较条件

Google sheets Google电子表格sumif添加了字符串比较条件,google-sheets,Google Sheets,任务是总结特定人群的价值观。 我已经创建了这个表,并找到了所有独特的姓氏。但是,公式的条件不起作用 下面是>>示例您不能将单元格引用放入字符串中 =sumif(A2:A25,"="&H2,F2:F25) 以下是另一种奖励方式: =query(A:F,"select sum(F) where A is not null and A = '"&H2&"' GROUP BY A label sum(F) ''",-1) =query(A:F,"select sum(F) w

任务是总结特定人群的价值观。 我已经创建了这个表,并找到了所有独特的姓氏。但是,公式的条件不起作用


下面是>>示例您不能将单元格引用放入字符串中

=sumif(A2:A25,"="&H2,F2:F25)
以下是另一种奖励方式:

=query(A:F,"select sum(F) where A is not null and A = '"&H2&"' GROUP BY A label sum(F) ''",-1)
=query(A:F,"select sum(F) where A is not null and A = '"&H2&"' GROUP BY A label sum(F) ''",-1)