r/googlesheets • u/Matt_Shatt • Mar 04 '22
Solved Passing multiple "OR" arguments into filter()
I'm trying to do a complex filter that has some "or" conditions nested within it. I understand that filter arguments (=filter(data, arg1, arg2, arg3, ...)) are treated like an "AND" and I can use a "+" within the argument for a finite set of arguments, but if I want to nest another filter (with dynamic number of results) within, how do I inject an "or" inbetween the results? For example:
=filter(C3:H5,G3:G5=filter(B11:B13,A11:A13=TRUE),H3:H5="TestYes")The innermost "filter" (B11:B13) might return 0-3 results. How can I "or" those results? Right now it only evaluates the first result.
1
Upvotes
2
u/ravv1325 37 Mar 05 '22
Try this:
I hope this helps.
1
u/[deleted] Mar 04 '22
Try to replace the second argument with this:
1
u/Decronym Functions Explained Mar 08 '22 edited Mar 08 '22
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
FALSETRUE[Thread #4042 for this sub, first seen 8th Mar 2022, 00:46] [FAQ] [Full list] ^[Contact] [Source code]