我构建了一个Google表格,该表格可以通过IMPORTRANGE收集其他几张表格,如下所示:
8月(A9单元格)的链接将在9月通过IMPORTRANGE删除,但是正确地知道该公式只能让我直到7月(因为有可用的信息),但是如何避免自动生成该链接?
在此示例中,我使用的公式是从一月,二月和八月获取数据,这些数据由于没有链接而总是崩溃:
=QUERY(ARRAYFORMULA({IF(A2="","",QUERY(IMPORTRANGE(A2,"Agent Summary!B5:N"),"Select Col1, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Col10, Col11, Col12, Col13, '"&B2&"', '"&C2&"' Where Col1 is not null label Col1'', Col2'', Col3'', Col4'', Col5'', Col6'', Col7'', Col8'', Col9'', Col10'', Col11'', Col12'', Col13'', '"&B2&"''', '"&C2&"'''"));IF(A3="","",QUERY(IMPORTRANGE(A3,"Agent Summary!B5:N"),"Select Col1, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Col10, Col11, Col12, Col13, '"&B3&"', '"&C3&"' Where Col1 is not null label Col1'', Col2'', Col3'', Col4'', Col5'', Col6'', Col7'', Col8'', Col9'', Col10'', Col11'', Col12'', Col13'', '"&B3&"''', '"&C3&"'''"));IF(A9="","",QUERY(IMPORTRANGE(A9,"Agent Summary!B5:N"),"Select Col1, Col2, Col3, Col4, Col5, Col6, Col7, Col8, Col9, Col10, Col11, Col12, Col13, '"&B9&"', '"&C9&"' Where Col1 is not null label Col1'', Col2'', Col3'', Col4'', Col5'', Col6'', Col7'', Col8'', Col9'', Col10'', Col11'', Col12'', Col13'', '"&B9&"''', '"&C9&"'''"))}),"Where Col1 is not null")