在 Google Sheets 中使用来自多个数组的 Arrayformula 进行求和

问题描述 投票:0回答:1

https://docs.google.com/spreadsheets/d/1JvZerzOiW0vdewnfZT47WuU3TPlW15UHUSpvII1HE50/edit#gid=0

我想使用 arrayformula 数组函数和单元格 N4 中的一个公式来通过 SUMIFS 获取该表中的 q'ty 值。

我确实喜欢这个

=ArrayFormula(sumifs($E$4:$E$29,$B$4:$B$29,N3:S3,$D$4:$D$29,M4:M20,$C$4:$C$29,L4:L20)) 

但我想我得到了错误的答案。

google-sheets array-formulas sumifs
1个回答
0
投票

使用

query()
,如下所示:

=query( 
  A3:E, 
  "select Col3, Col4, sum(Col5) 
   where Col1 is not null group by Col3, Col4 
   pivot Col2", 
  1 
)
© www.soinside.com 2019 - 2024. All rights reserved.