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

Excel FILTER to return array non zero columns

I have an Excel table that has the following (plus more) data in it:

Start data

What I would like to do is filter the data to return all but the columns that have all 0 values in them, i.e. the return would be:

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

Expected outcome

I can’t for the life of me get my filter expression to return what I want, any help would be greatly appreciated!

>Solution :

With BYCOL and LAMBDA:

=FILTER(B1:I4,BYCOL(B2:I4,LAMBDA(a,SUM(a)))>0)

Or as @BigBen pointed out:

=FILTER(B1:I4,BYCOL(B2:I4,LAMBDA(a,OR(a)))

enter image description here

Since BYCOL and LAMBDA are not available to all office 365 users yet here is one that does not use it.

=FILTER(B1:I4,TRANSPOSE(MMULT(--((TRANSPOSE(B2:I4)<>0)),SEQUENCE(ROWS(B2:I4),,1,0))>0))

enter image description here

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