I have to use the if-statement on column A from cells A2 to A5 to get the Headers data (B2 to G5) if-statement is TRUE.Data under the header will display in A2 if any cells under the heading from B2 to G2 are TRUE.Data under the header will display in A3 if any cells under the heading from B3 to G3 are TRUE.Data under the header will display in A4 if any cells under the heading from B4 to G4 are TRUE.Data under the header will display in A5 if any cells under the heading from B5 to G5 are TRUE.
I tried many ways but it didn't work.
=if(B2=TRUE, "Apple")+if(C2=TRUE, "Banana")+if(D2=TRUE, "Mango")+if(E2=TRUE, "Papaya")+if(B2=TRUE, "SugarCan"))
