In the following context when I say randomly it means in a random order so every recalculate could move the results around.
In this example I am trying to randomly display these 3 colours without duplicating, e.g no red, red, red or red blue red
=INDEX(Table16[colours],MATCH(SMALL([Column1],ROW()-1),[Column1],0))
The above formula only works for 3 rows then gets a ref error.
What I need is for the output to behave exactly like it is doing and repeat itself for the rows thereafter.
So if I had 3 colours and there were 6 rows to populate I would want each colour to appear twice exactly but randomly.
If I had 3 colours and there were 12 rows to populate I would want each colour to appear 4 times exactly but randomly.
If I had 3 colours and there were 13 rows to populate I would want 2 colours to appear 4 times and 1 to appear 5.
If I had 3 colours and there were 2 rows to populate I would want 2 colours to appear once each.