Home > Back-end >  Using filter with offset
Using filter with offset

Time:12-20

I have a google sheet with a number of columns and tick boxes. I want the Table header to be displayed and joined together when the boxes are ticked in each row. For example looking at the screenshot below:- In the result for John in row 2, I would want to have a Red and Green joined in Cell M2.

Currently have got this formula to pull filter the boxes that are TRUE =IFERROR(JOIN(" ",FILTER(B2:L2,B2:L2=TRUE)),"") but cant seem to work out the rest. I'm fairly sure the offset function is probably needed or a query may be easier?

enter image description here

CodePudding user response:

formula:

=BYROW(B2:L,LAMBDA(bx,INDEX(TEXTJOIN(", ",1,IF(bx=TRUE,B$1:L$1,)))))

enter image description here

  • Related