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

Google Sheets: How can I return an array of all values from a column that have a certain corresponding value in another column?

I need (and have had difficulty arriving at) a formulaic way to produce the values shown in columns D, E, and F.

enter image description here

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 :

try:

=QUERY(A2:B; "select max(B) where B is not null group by B pivot A")

update 1:

=INDEX(TRIM(TRANSPOSE(SPLIT(FLATTEN(QUERY(QUERY(IF(A2:B="",,A2:B&"​"), 
 "select max(Col2) where Col2 is not null group by Col2 pivot Col1"),,9^9)), "​"))))

enter image description here


update 2:

={"School Supplies"; FILTER(B2:B, A2:A="School Supplies")}
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