【问题标题】:how do you summarize and then traspose the results? [closed]你如何总结然后转置结果? [关闭]
【发布时间】:2020-11-25 22:09:38
【问题描述】:

这张图片显示了我需要实现的目标。我不知道该怎么做。 欢迎任何帮助。

【问题讨论】:

  • 什么程序? Excel、Google 表格或 LibreOffice Calc?方法将因哪一种而异。查找反向旋转。
  • 理想的谷歌表格。但是,如果其他电子表格中有解决方案也会有所帮助。谢谢。

标签: google-sheets google-sheets-formula transpose array-formulas google-sheets-query


【解决方案1】:

也许:

=ARRAYFORMULA(QUERY(SPLIT(FLATTEN(IF(B2:D="",,A2:A&"♀"&B1:D1&"♀"&B2:D)), "♀"), 
 "where Col2 is not null", 0))

或者也许:

=ARRAYFORMULA(QUERY(SPLIT(FLATTEN(IF(B2:D="",,A2:A&"♀"&B1:D1&"♀"&B2:D)), "♀"), 
 "select Col1,Col2,sum(Col3) 
  where Col2 is not null 
  group by Col1,Col2 
  order by Col1,Col2,sum(Col3) 
  label sum(Col3)''", 0))

【讨论】:

  • 太棒了,这就是我想要的。非常感谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-05-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多