I'm trying to do a concatenate formula to combine all the categories from sheet 1 into one cell. The values in Sheet1 for categories would be a drop down list of blank, L, M, and H. In Sheet 2, if the category has a value, include it in part of the concatenate formula. Is an loaded IF statement the most efficient way or would a macro make more logical sense?
Sheet1:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Category 1[/TD]
[TD]Category 2[/TD]
[TD]Category 3[/TD]
[TD]Category 4[/TD]
[TD]Category 5[/TD]
[TD]Category 6[/TD]
[TD]Category 7[/TD]
[TD]Category 8[/TD]
[TD]Category 9[/TD]
[TD]Category 10[/TD]
[TD]Category 11[/TD]
[TD]Category 12[/TD]
[TD]Category 13[/TD]
[TD]Category 14[/TD]
[TD]Category 15[/TD]
[/TR]
[TR]
[TD]Test1234[/TD]
[TD]M[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]H[/TD]
[TD][/TD]
[TD][/TD]
[TD]L[/TD]
[TD][/TD]
[TD]L[/TD]
[TD][/TD]
[TD][/TD]
[TD]M[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Testin511[/TD]
[TD]M[/TD]
[TD]M[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]M[/TD]
[TD][/TD]
[TD]L[/TD]
[TD][/TD]
[TD]M[/TD]
[TD][/TD]
[TD][/TD]
[TD]L[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sheet2:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Category Combined[/TD]
[/TR]
[TR]
[TD]Test1234[/TD]
[TD]Area 1: Category 1
Category Value: Medium
Area 2: Category 5
Category Value: High
Area 3: Category 8
Category Value: Low
Area 4: Category 10
Category Value: Low
Area 5: Category 13
Category Value: Medium[/TD]
[/TR]
[TR]
[TD]Testin511[/TD]
[TD]Area 1: Category 1
Category Value: Medium
Area 2: Category 2
Category Value: Medium
Area 3: Category 7
Category Value: Medium
Area 4: Category 9
Category Value: Low
Area 5: Category 11
Category Value: Medium
Area 6: Category 14
Category Value: Low[/TD]
[/TR]
</tbody>[/TABLE]
Sheet1:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Category 1[/TD]
[TD]Category 2[/TD]
[TD]Category 3[/TD]
[TD]Category 4[/TD]
[TD]Category 5[/TD]
[TD]Category 6[/TD]
[TD]Category 7[/TD]
[TD]Category 8[/TD]
[TD]Category 9[/TD]
[TD]Category 10[/TD]
[TD]Category 11[/TD]
[TD]Category 12[/TD]
[TD]Category 13[/TD]
[TD]Category 14[/TD]
[TD]Category 15[/TD]
[/TR]
[TR]
[TD]Test1234[/TD]
[TD]M[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]H[/TD]
[TD][/TD]
[TD][/TD]
[TD]L[/TD]
[TD][/TD]
[TD]L[/TD]
[TD][/TD]
[TD][/TD]
[TD]M[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Testin511[/TD]
[TD]M[/TD]
[TD]M[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]M[/TD]
[TD][/TD]
[TD]L[/TD]
[TD][/TD]
[TD]M[/TD]
[TD][/TD]
[TD][/TD]
[TD]L[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sheet2:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Category Combined[/TD]
[/TR]
[TR]
[TD]Test1234[/TD]
[TD]Area 1: Category 1
Category Value: Medium
Area 2: Category 5
Category Value: High
Area 3: Category 8
Category Value: Low
Area 4: Category 10
Category Value: Low
Area 5: Category 13
Category Value: Medium[/TD]
[/TR]
[TR]
[TD]Testin511[/TD]
[TD]Area 1: Category 1
Category Value: Medium
Area 2: Category 2
Category Value: Medium
Area 3: Category 7
Category Value: Medium
Area 4: Category 9
Category Value: Low
Area 5: Category 11
Category Value: Medium
Area 6: Category 14
Category Value: Low[/TD]
[/TR]
</tbody>[/TABLE]