Code:
program:
part1=contains(field('#cola'), 'Yes', 'colA', '');
part2=contains(field('#colb'), 'Yes', 'colB', '');
part3=contains(field('#colc'), 'Yes', 'colC', '');
final=list_union(
'',
strcat(part1, ',', part2, ',', part3)
','
);
Will display the concatenated and comma-separated values.
I've never really played around with custom columns, but you can set 8 rules to match each state with a different color. I think you have to have a rule per color.
Edit: Right, like chaley said, templates are "hiding" at the bottom.