【问题标题】:Combining the rows of data from sheets with serial numbers in colA using Google Sheets使用 Google Sheets 将工作表中的数据行与 colA 中的序列号结合起来
【发布时间】:2020-08-15 14:22:24
【问题描述】:

如何在 A 列中生成来自 2 个不同电子表格的数据的序列号?

我试过了

=QUERY({Sheet1!A2:G;Sheet2!A2:G}, "select * where Col5 is not null")

Here is the sheet

【问题讨论】:

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


    【解决方案1】:

    如何根据另一列创建序列号列表。

    如果您想使用现有公式(稍作调整),可以在单元格A2 中使用

    =SEQUENCE(COUNT(B2:B))

    您的B2 现有公式中的细微调整将是

    =QUERY({Sheet1!B2:G;Sheet2!B2:G}, "select * where Col4 is not null")
    

    使用的功能:

    【讨论】:

      【解决方案2】:

      尝试:

      =ARRAYFORMULA({{"serial number"; ROW(INDIRECT("A1:A"&COUNTA(
       QUERY({Sheet1!E2:E; Sheet2!E2:E}, "where Col1 is not null", 0))))}, 
       QUERY({Sheet1!B1:G; Sheet2!B2:G}, "where Col4 is not null", 1)})
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2021-08-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-02-23
        • 1970-01-01
        • 2021-07-13
        相关资源
        最近更新 更多