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

Return matching rows from Google Sheets matrix

Given a worksheet with rows and columns, and boolean values in the body, I want to return a list of rows where the values are true for a specific column.

e.g.

Vehicle/Colour Green Blue Red
Sport True False True
SUV True True False
Sedan False False True

I want to return a list of all vehicles that come in Red.

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

I’ve created the sheets and started to try some operations using lookup() and vlookup() but got stuck when it became obvious what I was trying wasn’t going to work.

>Solution :

You may try:

=filter(A2:A,filter(B2:D,B1:D1="Red"))

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