【问题标题】:Google Sheets - Stacking Arrays when they are not empty谷歌表格 - 当它们不为空时堆叠数组
【发布时间】:2022-08-02 10:59:47
【问题描述】:

我有 Google Sheets 4(可能的)数组,我想将它们堆叠在一起,包括每个数组的标题。

堆叠它们取决于数组的内容:如果其中一个数组的值为 0,则该特定数组将从堆栈中排除。

我尝试使用 \"IF\",说如果数组没有产品 (0) 则不显示任何内容 (\"\"),但它给了我一个错误。另一种方法是引入我认为的一行空数组,但随后不需要额外的行。

到目前为止,我已经将它们与以下内容堆叠在一起:

={间接(\"B5:D\"&D3+6);间接(\"F4:H\"&H3+6);间接(\"J4:L\"&L3+6);间接(\"N4: P\"&P3+6)}

(我使用 Indirect + the count of products 来提取数组中填充的部分,不包括所有空白单元格)

The table with arrays would look like this

This is how they should look like and how it\'s looking like currently

示例文档在这里:

https://docs.google.com/spreadsheets/d/17BLXp0sFGrLhDCXMtr727r85Kb6bOcAL8DMGLbyac_g/edit?usp=sharing

谢谢,

    标签: arrays google-sheets stack spreadsheet


    【解决方案1】:

    尝试这个

    =QUERY( {  B5:D5 ; B7:D ;F5:H5 ; F7:H ;J5:L5 ; J7:L ;N5:P5  ; N7:P} ; " Select * Where Col1 is not null ")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-02-01
      • 1970-01-01
      • 2012-01-10
      • 2021-09-22
      • 1970-01-01
      • 2022-01-13
      • 2016-01-19
      相关资源
      最近更新 更多