Assuming that you have your orders in H2:J7, put this array formula in K2, copy down all rows and across as many columns as you think you might need
=IFERROR(INDEX($A$1:$A$8,SMALL(IF(($B$1:$B$8=$H2)*($C$1:$C$8=$I2)*($D$1:$D$8=$J2),ROW($A$1:$A$8)),COLUMN(A1))),"")
Bookmarks