Doing this with single cell calculations would be quite complex and inefficient I think... moreover returning the concatenated strings would prove very difficult without use of either VBA or Helper cells.
Below is one approach which though not elegant does do what you want - I think...
Using your sample file:
With the above in place you can now create your summary table formulae
the results with the above in place replicate all of your expected results.
edit: added working example for sake of demo.
Bookmarks