dhopler625
New Member
- Joined
- May 23, 2018
- Messages
- 3
Good morning. I have a spreadsheet where I want to find a formula that I can put in a cell that looks at all cells to the right and for each instance where it finds an "x", concatenates the column headers into that cell. For instance in the example below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Sites[/TD]
[TD]Site 1[/TD]
[TD]Site 2[/TD]
[TD]Site 3[/TD]
[TD]Site 4[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]Site 1, Site 3[/TD]
[TD="align: center"]x[/TD]
[TD][/TD]
[TD="align: center"]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]Site 2[/TD]
[TD][/TD]
[TD="align: center"]x[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person 3[/TD]
[TD]Site 2, Site 3, Site 4[/TD]
[TD][/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]x[/TD]
[/TR]
[TR]
[TD]Person 4[/TD]
[TD]Site 1, Site 2[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]x[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want to put a formula in the Sites column that produces the above result based on if there's an "x" in the corresponding columns for that row.
Thank you.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Sites[/TD]
[TD]Site 1[/TD]
[TD]Site 2[/TD]
[TD]Site 3[/TD]
[TD]Site 4[/TD]
[/TR]
[TR]
[TD]Person 1[/TD]
[TD]Site 1, Site 3[/TD]
[TD="align: center"]x[/TD]
[TD][/TD]
[TD="align: center"]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person 2[/TD]
[TD]Site 2[/TD]
[TD][/TD]
[TD="align: center"]x[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Person 3[/TD]
[TD]Site 2, Site 3, Site 4[/TD]
[TD][/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]x[/TD]
[/TR]
[TR]
[TD]Person 4[/TD]
[TD]Site 1, Site 2[/TD]
[TD="align: center"]x[/TD]
[TD="align: center"]x[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want to put a formula in the Sites column that produces the above result based on if there's an "x" in the corresponding columns for that row.
Thank you.