Reputation: 41
https://docs.google.com/spreadsheets/d/1vtfRQRMTmH2JfZasDTwzVIeg4oDRKC_Qzb_Tz8i9TBE/edit#gid=0
Named Range: 'Registration' = A:F
Goal: H2 filters Column A for any row in Registration that contains the word "Yes".
I've tried looking into query() and filter() but those seem to require conditions by column(s). And I wasn't able to get lookup() to work either. And ideally I'd like the flexibility in case other columns are added or moved around.
I'd appreciate any help!
Upvotes: 0
Views: 1701
Reputation: 4988
Well, it's not pretty, but QUERY
does work:
=ArrayFormula(QUERY(
Registration,
"select A
where "&
JOIN(" or ", CHAR(65+SEQUENCE(1,COUNTA(INDEX(Registration,1,0))-1))&"='Yes'")
)
)
Remarks:
Col
+N and generate a sequence based on that.Upvotes: 4