Hello,
I have several columns which contain numbers. I'd like to use TEXTJOIN with IF so that if, say column J includes the number 1 and column M also contains the number 1, then the column headers will be concatenated/joined (so the result would be "J, M".
I've made various unsuccessful attempts; I just end up getting every column header strung together as opposed to only those with a 1 below.
Here's what I've tried so far:
=TEXTJOIN("; ",TRUE,IF(J2:J10>0,$J$1:$S$1))
=TEXTJOIN(", ",1,INDEX(REPT(J1:S1,J$2:J$10=1),0))
=IF(J2:J10>0,CONCAT(J1:S1))
I know I'm probably missing something glaringly obvious here, but any help would be much appreciated as I'm completely stuck.
Many thanks,
AnyaK
P.S. I regret that I cannot post an image/example at present as my employer doesn't allow this, but I could try to do this later from home if an example might make my problem clearer?
I have several columns which contain numbers. I'd like to use TEXTJOIN with IF so that if, say column J includes the number 1 and column M also contains the number 1, then the column headers will be concatenated/joined (so the result would be "J, M".
I've made various unsuccessful attempts; I just end up getting every column header strung together as opposed to only those with a 1 below.
Here's what I've tried so far:
=TEXTJOIN("; ",TRUE,IF(J2:J10>0,$J$1:$S$1))
=TEXTJOIN(", ",1,INDEX(REPT(J1:S1,J$2:J$10=1),0))
=IF(J2:J10>0,CONCAT(J1:S1))
I know I'm probably missing something glaringly obvious here, but any help would be much appreciated as I'm completely stuck.
Many thanks,
AnyaK
P.S. I regret that I cannot post an image/example at present as my employer doesn't allow this, but I could try to do this later from home if an example might make my problem clearer?