Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I filter B9:NC49 based on criteria set in column B (B56:B62) and if its adjacent column (C) (C56:C62) is checked in Google Sheets?

I am trying to get this one to filter, but it just shows everything:

=IF(COUNTIF('Cash Flow'!C56:C62,TRUE)>=1, 
    FILTER('Cash Flow'!B9:NC46, REGEXMATCH('Cash Flow'!B9:B46,JOIN("|",IF('Cash Flow'!C56:C62=TRUE,'Cash Flow'!B56:B62,"")))), 
QUERY('Cash Flow'!B9:NC46,"select * where B is not null and not B matches '%' and not B matches 'Pending'",1))

Could you shed a light on the reason why?

Thank you!

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Well goin’ in blindly; can you give a shot at:

=IF(COUNTIF('Cash Flow'!C56:C62,TRUE)>=1, 
    FILTER('Cash Flow'!B9:NC46, REGEXMATCH('Cash Flow'!B9:B46,TEXTJOIN("|",1,IF('Cash Flow'!C56:C62=TRUE,'Cash Flow'!B56:B62,"")))), 
QUERY('Cash Flow'!B9:NC46,"select * where B is not null and not B matches '%' and not B matches 'Pending'",1))
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading