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?
CodePudding user response:
formula:
=BYROW(B2:L,LAMBDA(bx,INDEX(TEXTJOIN(", ",1,IF(bx=TRUE,B$1:L$1,)))))