By: Md. Shamim Reza

In reply to Kel.

Hi there!

I am assuming that you want the following result.

Then follow the steps below.

First, apply the following formula in cell E2 and copy it down.
=TEXTJOIN(",",TRUE,IF(B2:D2="X",$B$1:$D$1,""))

Then, filter out the blank cells from column E.

Next, hide columns B to D.

Now you can print the summary data.

Please let us know if this is what you needed. If not then tell us more about it so that we may help. And thank you for being with us.

Regards
Md. Shamim Reza (Exceldemy Team)