使用Google表格在colA中将表格中的数据行与序列号结合起来

问题描述

如何在Colum A中生成由2个不同电子表格组合而成的数据的序列号?

我尝试过

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

Here is the sheet

解决方法

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

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

=SEQUENCE(COUNT(B2:B))

create a list of sequential serial numbers

您的B2现有公式中的次要调整是

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

使用的功能:

,

尝试:

=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)})

enter image description here