I have a query:
=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)
in C1:C4 there is a text
in C5:C6 there is 2 dates
so i need to add in query textjoin(" AND "; true; dash!C5:C6)
How can i do it?
the way i do it doesn't work:
=query(test_data_set!A2:C;"SELECT A, B, C" & if(countblank(dash!C1:C6)=6;"";" WHERE " & textjoin(" OR "; true; dash!C1:C4) & textjoin(" AND "; true; dash!C5:C6)) & "ORDER BY B";0)
please help