Hello everyone, my first post.

I have a summary list and I am looking to produce a detailed list by individual item from the summary. For example:

Summary list (this lists the number of each type - s1, s2 etc)

s1: 1
s2: 2
s3: 3

Detailed List

s2
s3
s1
s3
s2
s3

Is there a function that will produce the detailed list from the summary one? Secondly if such a function does exist am I able to specify criteria for the order in that list - e.g. there should not be two consecutive s2's

Thanks in advance!