Google sheets 如何将2个TextJoin与“合并”;及;及;或;谷歌文档查询中的语句?

Google sheets 如何将2个TextJoin与“合并”;及;及;或;谷歌文档查询中的语句?,google-sheets,google-query-language,textjoin,Google Sheets,Google Query Language,Textjoin,我有一个问题: =query(test_data_set!A2:C;“SELECT A,B,C”和if(countblank(dash!C1:C6)=6;“”;“WHERE”&textjoin(“OR”true;dash!C1:C4))和“ORDER BY B”;0) 在C1:C4中有一个文本 C5:C6中有两个日期 所以我需要添加查询textjoin(“AND”true;dash!C5:C6) 我怎么做 我这样做是行不通的: =query(test_data_set!A2:C;“SELECT

我有一个问题:

=query(test_data_set!A2:C;“SELECT A,B,C”和if(countblank(dash!C1:C6)=6;“”;“WHERE”&textjoin(“OR”true;dash!C1:C4))和“ORDER BY B”;0)

在C1:C4中有一个文本
C5:C6中有两个日期

所以我需要添加查询textjoin(“AND”true;dash!C5:C6)

我怎么做

我这样做是行不通的:
=query(test_data_set!A2:C;“SELECT A,B,C”和if(countblank(dash!C1:C6)=6;“WHERE”&textjoin(“或”true;dash!C1:C4)&textjoin(“AND”true;dash!C5:C6))和“ORDER BY B”0

请帮我一个忙


=IFERROR(查询(test_data_set!A2:C;“选择A,B,C,其中A不为NULL”&if(countblank('Dazrin Copy of Dash'!C1:C6)=行(C1:C6);“;”和“&if(countblank(C1:C4)行(C1:C4);”(&textjoin(“true;”Dazrin Copy of Dash'!C1:C4);))&if(和(countblank(C1:C1)行(C5:C6))和('textjoin”);true;'Dazrin Copy of Dash'!C5:C6)&“&”和“ORDER BY B ASC”;0);“未找到任何项目”)

只需忽略
IF
语句和
TEXTJOIN
。写出实际的SQL语句,如果countblank(破折号!C1:C6)6,则该语句将应用。