It may be that an employee who makes an order gets a T-shirt, if that is the case then the formula for ID could be modified to read:
Formula:
=IFERROR(INDEX(Employees!G$2:G$13,AGGREGATE(15,6,(ROW($2:$13)-1)/((Employees!$A$2:$A$13=$H$7)*(Employees!C$2:C$13<>"")),ROW(1:1))),"")
If that isn't the case then an additional column, say column H, could be added to the Employees sheet that populates using: =OR(C2<>"",D2<>"",E2<>"",F2<>"")
The ID formula on the Packing List sheet could populate using:
Formula:
=IFERROR(INDEX(Employees!G$2:G$13,AGGREGATE(15,6,(ROW($2:$13)-1)/((Employees!$A$2:$A$13=$H$7)*(Employees!H$2:H$13=TRUE)),ROW(1:1))),"")
Let us know if you have any questions.
Bookmarks