rjbinney
Active Member
- Joined
- Dec 20, 2010
- Messages
- 293
- Office Version
- 365
- Platform
- Windows
I have a table with a long list of items, followed by multiple columns of potential "attributes" for that list. The attributes are ticked either on or off.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Organic[/TD]
[TD]Juicy[/TD]
[TD]Delicious[/TD]
[TD]Deadly[/TD]
[TD]Seeds[/TD]
[TD]Carbon-Based[/TD]
[TD]Carbon Steel[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Apples[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Oranges[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Muskrats[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Muskets[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[TD][/TD]
[TD]x[/TD]
[/TR]
</tbody>[/TABLE]
I'd like to be able to make a list that concatenates JUST the ticked attributes
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Apples
[/TD]
[TD][/TD]
[TD]Organic, Juicy, Delicious, Seeds, Carbon-Based
[/TD]
[/TR]
[TR]
[TD]Oranges
[/TD]
[TD][/TD]
[TD]Organic, Juicy, Delicious, Carbon-Based
[/TD]
[/TR]
[TR]
[TD]Muskrats
[/TD]
[TD][/TD]
[TD]Organic, Delicious, Deadly, Carbon-Based
[/TD]
[/TR]
[TR]
[TD]Muskets
[/TD]
[TD][/TD]
[TD]Deadly, Carbon Steel
[/TD]
[/TR]
</tbody>[/TABLE]
So I built a second table, essentially:
=IF (ISBLANK (B2),"",", B$1)
Which gives me
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[TD]P[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Organic[/TD]
[TD]Juicy[/TD]
[TD]Delicious[/TD]
[TD][/TD]
[TD]Seeds[/TD]
[TD]Carbon-Based[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Organic[/TD]
[TD]Juicy[/TD]
[TD]Delicious[/TD]
[TD][/TD]
[TD][/TD]
[TD]Carbon-Based[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Organic[/TD]
[TD][/TD]
[TD]Delicious[/TD]
[TD]Deadly[/TD]
[TD][/TD]
[TD]Carbon-Based[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Deadly[/TD]
[TD][/TD]
[TD][/TD]
[TD]Carbon Steel[/TD]
[/TR]
</tbody>[/TABLE]
I know I can copy that second table into word and manipulate it into the desired list, but is there a clever way (or array) to build that same list in a cell?
(The list is 28 attributes, so that's a lot of nested IFs!)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]Organic[/TD]
[TD]Juicy[/TD]
[TD]Delicious[/TD]
[TD]Deadly[/TD]
[TD]Seeds[/TD]
[TD]Carbon-Based[/TD]
[TD]Carbon Steel[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Apples[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Oranges[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Muskrats[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Muskets[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]x[/TD]
[TD][/TD]
[TD][/TD]
[TD]x[/TD]
[/TR]
</tbody>[/TABLE]
I'd like to be able to make a list that concatenates JUST the ticked attributes
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Apples
[/TD]
[TD][/TD]
[TD]Organic, Juicy, Delicious, Seeds, Carbon-Based
[/TD]
[/TR]
[TR]
[TD]Oranges
[/TD]
[TD][/TD]
[TD]Organic, Juicy, Delicious, Carbon-Based
[/TD]
[/TR]
[TR]
[TD]Muskrats
[/TD]
[TD][/TD]
[TD]Organic, Delicious, Deadly, Carbon-Based
[/TD]
[/TR]
[TR]
[TD]Muskets
[/TD]
[TD][/TD]
[TD]Deadly, Carbon Steel
[/TD]
[/TR]
</tbody>[/TABLE]
So I built a second table, essentially:
=IF (ISBLANK (B2),"",", B$1)
Which gives me
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[TD]P[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Organic[/TD]
[TD]Juicy[/TD]
[TD]Delicious[/TD]
[TD][/TD]
[TD]Seeds[/TD]
[TD]Carbon-Based[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Organic[/TD]
[TD]Juicy[/TD]
[TD]Delicious[/TD]
[TD][/TD]
[TD][/TD]
[TD]Carbon-Based[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Organic[/TD]
[TD][/TD]
[TD]Delicious[/TD]
[TD]Deadly[/TD]
[TD][/TD]
[TD]Carbon-Based[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Deadly[/TD]
[TD][/TD]
[TD][/TD]
[TD]Carbon Steel[/TD]
[/TR]
</tbody>[/TABLE]
I know I can copy that second table into word and manipulate it into the desired list, but is there a clever way (or array) to build that same list in a cell?
(The list is 28 attributes, so that's a lot of nested IFs!)