Home > Mobile >  Google Sheets: How can I return an array of all values from a column that have a certain correspondi
Google Sheets: How can I return an array of all values from a column that have a certain correspondi

Time:10-19

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

CodePudding user response:

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")}
  • Related