Answer the question
In order to leave comments, you need to log in
How to fix number and date filter errors in QUERY?
String data is filtered in QUERY normally. As soon as it's numbers or dates, the #N/A error occurs - the query did not return any results.
There is a wide table
. Download yourself a Google drive for a test.
=QUERY(TestWork!A4:AJ;
"select * where "
& ЕСЛИ(СУММПРОИЗВ(A11:A15); " (C = '" & JOIN("' or C = '";FILTER(B11:B15;A11:A15)) & "')";" C <> '@@@@@'")
& ЕСЛИ(СУММПРОИЗВ(A2:A5); " and (G = '" & JOIN("' or G = '";FILTER(B2:B5;A2:A5)) & "')";" and G <> '@@@@@'")
& ЕСЛИ(СУММПРОИЗВ(C2:C25); " and (M = '" & JOIN(" or M = ";FILTER(D2:D25;C2:C25)) & "')";" and M <> '@@@@@'")
& ЕСЛИ(СУММПРОИЗВ(E3:E); " and (J = '" & JOIN("' or J = '";FILTER(F3:F;E3:E)) & "')";" and J <> '@@@@@'")
)
& ЕСЛИ(СУММПРОИЗВ(G3:G); " and (B = '" & JOIN("' or B = '";FILTER(H3:H;G3:G)) & "')";" and B <> '@@@@@'")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question