查询在一个 sheet 中有效,但在另一个中无效?

Query works in one sheet, but not in another?

QUERY 适用于一个 sheet,但不适用于另一个。两个 sheet 的格式似乎完全相同,数据相同,但当我尝试将其应用于我的工作 sheet 时,我收到“AVG_SUM_ONLY_NUMERIC”错误。我认为它一定与列的格式有关,但即使将格式更改为 "automatic",它仍然不起作用。

这里是有问题的公式:

=QUERY(QUERY(projectMaterials!A3:K, 
 "select A,sum(B),C,D,E,F,G,H,I,J,K 
  where A is not null 
  group by A,C,D,E,F,G,H,I,J,K", 0),
 "offset 1", 0)

适用于 this sheet, but not on this one...

=ARRAYFORMULA(QUERY({projectMaterials!A3:A,projectMaterials!B3:B*1,projectMaterials!C3:K}, 
 "select Col1,sum(Col2),Col3,Col4,Col5,Col6,Col7,Col8,Col9,Col10,Col11 
  where Col1 is not null 
  group by Col1,Col3,Col4,Col5,Col6,Col7,Col8,Col9,Col10,Col11
  label sum(Col2)''", 0))