If your list isn't extraordinarily long, then you can try something like this
Assuming your list is in A2:C100
And your input cell is D2
then in D3 enter: =Countif(C2:C100,D2)
Then in the location you want the list to occur enter:
=IF(ROWS($A$1:$A1)>$D$3,"",INDEX(A$2:A$100,SMALL(IF($C$2:$C$100=$D$2,ROW($A$1:$A$100)-ROW($A$1)),ROWS($A$1:A1))))
Make adjustments as necessary and then confirm with CTRL+SHIFT+ENTER and copy down and across to next 2 columns
If you have more columns to copy over or your data is a lot larger, then there are other ways to be more efficient...
Bookmarks