Unless you have a fixed number of times you know it will repeat, you will need a couple of helpers...
So if your original list is in A2:A8, for example,
then in C2 enter formula:
=MAX(COUNTIF($A$2:$A$8,$A$2:$A$8))
confirmed with CTRL+SHIFT+ENTER
Then in B2 enter formula:
=IF(AND(COUNTIF(A$2:A2,A2)=1,COUNTIF(A$2:A$8,A2)=$C$2),COUNT(B$1:B1)+1,"")
copied down.
and in D2 enter formula:
then to get results use:
=IF(ROWS($A$1:$A1)>$D$2,"",INDEX($A$2:$A$8,SMALL(IF(COUNTIF($A$2:$A$8,$A$2:$A$8)=MAX(COUNTIF($A$2:$A$8,$A$2:$A$8)),ROW($A$2:$A$8)-ROW($A$2)+1),ROWS($A$1:$A1))))
confirmed with CTRL+SHIFT+ENTER and copied down.
If you know the number of times a max repeat will happen, then you just need the last formula copied down that many times.
Bookmarks