I have a set of matching values as shown:

The input is a table with Order number in the first column and dates in the seventh column.
I would like to extract all the matching dates from the seventh column and display only the 'unique dates' in the columns against each matching order value.
If there are no matching values in the input, it should return blank values in output.
I use Excel 2016. The inputs are in sheet 2.
I managed to get the dates with array index formula but it is slow with large data.
If you have access to the new array functions
UNIQUE&FILTERthen:Using the sample data below
=UNIQUE(A1:A10)=TRANSPOSE(UNIQUE(FILTER(B1:B10,A1:A10=E1)))F1down to the last cell which will populate your desired table.