Formula for the Shirt column is the same as the first formula in post #6
Formula for Pants column is:
Formula:
=INDEX(B$2:B$6,COUNTIFS(H$1:H1,C$6,H$2:H2,C$2)+1)
Formula for Pant Brand column is:
Formula:
=INDEX(C$2:C$6,IF(MOD(COUNTIFS(I$1:I1,D$6,I$2:I2,D$2)+1,COUNTA(B$2:B$6))=0,COUNTA(B$2:B$6),MOD(COUNTIFS(I$1:I1,D$6,I$2:I2,D$2)+1,COUNTA(B$2:B$6))))
Formula for Pant Color column is:
Formula:
=INDEX(D$2:D$6,IF(MOD(ROUNDUP(ROW(1:1)/COUNTA(A$2:A$11),0),COUNTA(B$2:B$6))=0,COUNTA(C$2:C$6),MOD(ROUNDUP(ROW(1:1)/COUNTA(A$2:A$11),0),COUNTA(C$2:C$6))))
Since all pants are length 40 put 40 in J2.
Goto cell F1251 and press Ctrl, Shift and the up arrow,
Press Ctrl + d,
select G2:J2 and double click the fill handle for J2.
Let us know if you have any questions.
Bookmarks