3

I have a google sheet that autofills rows from another sheet only if the value is a specific column is "approved".

=FILTER(Responses!A:AAC,Responses!D:D="Approved")

Is it possible to combine this to somehow only display columns that aren't blank. So for example if row 1 Column D is "approved", column E is blank, and column F is "data", then the sheet will autopopulate row 1 column D and F but not E. THank you!

player0
  • 124,011
  • 12
  • 67
  • 124

1 Answers1

1

try:

=TRANSPOSE(QUERY(TRANSPOSE(
 FILTER(Responses!A:AAC, Responses!D:D="Approved")), 
 "where Col2 is not null", ))

update:

=FILTER(FILTER(Responses!A:AAA, Responses!D:D="Approved"),
 TRIM(QUERY(FILTER(Responses!A2:AAA, Responses!D2:D="Approved"),,9^9))<>"")

enter image description here

player0
  • 124,011
  • 12
  • 67
  • 124