Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
If statement 在Google表单中验证公式后,如何选择所选行和下一行?_If Statement_Google Sheets_Google Sheets Formula_Array Formulas_Google Sheets Query - Fatal编程技术网

If statement 在Google表单中验证公式后,如何选择所选行和下一行?

If statement 在Google表单中验证公式后,如何选择所选行和下一行?,if-statement,google-sheets,google-sheets-formula,array-formulas,google-sheets-query,If Statement,Google Sheets,Google Sheets Formula,Array Formulas,Google Sheets Query,我对谷歌表单中的公式有一些问题。 我试图使用query从多个工作表中提取一些数据,但我还需要获取下一行数据,是否可以使用公式 图纸链接: 试试: ={'01'!A1:M1; ARRAYFORMULA(QUERY({ '01'!A2:J, IF('01'!K2:K<>"", '01'!K2:K, '01'!K1:K), '01'!L2:M; '02'!A2:J, IF('02'!K2:K<>"", '02'!K2:K, '02'!K1:K), '02'!L2:M},

我对谷歌表单中的公式有一些问题。 我试图使用query从多个工作表中提取一些数据,但我还需要获取下一行数据,是否可以使用公式

图纸链接: 试试:

={'01'!A1:M1; ARRAYFORMULA(QUERY({
 '01'!A2:J, IF('01'!K2:K<>"", '01'!K2:K, '01'!K1:K), '01'!L2:M; 
 '02'!A2:J, IF('02'!K2:K<>"", '02'!K2:K, '02'!K1:K), '02'!L2:M}, 
 "where Col11='CS'", 0))}
={'01'!A1:M1;数组公式(查询({
'01'!A2:J,如果('01'!K2:K','01'!K2:K,'01'!K1:K),'01'!L2:M;
'02'!A2:J,如果('02'!K2:K','02'!K2:K,'02'!K1:K),'02'!L2:M},
“其中Col11='CS',0))}
第一:

=query(arrayformula(
       {'01'!A1:M1;
        '01'!A2:J, 
        if('01'!K2:K="", '01'!K1:K,'01'!K2:K),
        '01'!L2:L,
        if('01'!C2:C<>"",1,1);
        '02'!A1:M1;
        '02'!A2:J,
        if('02'!K2:K="",'02'!K1:K,'02'!K2:K),
        '02'!L2:L,
        if('02'!C2:C<>"",2,2)}),
        "Select * where Col11='CS'")

感谢您提供电子表格。然而,你的问题并没有描述你想要实现什么,你遇到困难的具体公式,你想要实现的结果。请编辑您的问题以解释这些内容。请花一些时间以足够具体的方式表达您的问题,以便其他人能够理解。另外,请阅读和
=query({'01'!A1:N;
       arrayformula(
                     {
                       '01'!A2:L,
                       if('01'!C2:C="",0,1),
                       if('01'!K2:K="",'01'!K1:K,'01'!K2:K);
                       '02'!A2:L,
                       if('02'!C2:C="",0,2),
                       if('02'!K2:K="",'02'!K1:K,'02'!K2:K)
                     }
                   )
        },
          "Select * where Col14='CS'"
      )