Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Multiple independent IF statements in one cell for multiple cells

$
0
0

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"))

enter image description here


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>