Joe4
MrExcel MVP, Junior Admin
- Joined
- Aug 1, 2002
- Messages
- 74,140
- Office Version
- 365
- Platform
- Windows
I have a grid of data that can contain one of three entries: Yes, No, and nothing (empty string).
I need to build a string for each row of values that will return a string of the headers, separated by commas, but only for the columns with "Yes" in them.
So in the image below, the black is my data grid, and the red is my desired result for each row of that grid:
I was trying to do it with TEXTJOIN, but it is a little more complicated than that. I could do it rather easily myself with VBA, but am looking for a formulaic solution.
Can anyone assist?
I need to build a string for each row of values that will return a string of the headers, separated by commas, but only for the columns with "Yes" in them.
So in the image below, the black is my data grid, and the red is my desired result for each row of that grid:
I was trying to do it with TEXTJOIN, but it is a little more complicated than that. I could do it rather easily myself with VBA, but am looking for a formulaic solution.
Can anyone assist?