Hello Kayley and Welcome to Excel Forum.
This formula reproduces the results that are manually placed on the Isle A sheet:
Formula:
=IF(A2="","",IFERROR(INDEX('Pallet list by Product'!$A$1:$A$14,AGGREGATE(15,6,ROW($A$1:$A$14)/('Pallet list by Product'!$B$1:$W$14=A2),1)),""))
Select Cell A1 and paste the formula into the formula bar,
Drag the fill handle over to cell L1,
Select (Auto Fill Options) Fill without formatting,
While A1:L1 are still selected simultaneously press the Ctrl and c keys,
Select cell A3 and simultaneously press the Ctrl and v keys,
Select (Paste Options) formulas,
Select cell A5 and simultaneously press the Ctrl and v keys,
Select (Paste Options) formulas...
Let us know if you have any questions.
Bookmarks