
Originally Posted by
NBVC
See attached...
Formula in A2:
=IF(ROW()-1<=COUNTIF(Product1!$D$2:$D$8,">=1"),INDEX(Product1!A$2:A$8,SMALL(IF(Product1!$D$2:$D$8>=1,ROW(Product1!$D$2:$D$8)-ROW(Product1!$D$2)+1),ROW()-1)),IF(ROW()-COUNTIF(Product1!$D$2:$D$8,">=1")-1<=COUNTIF(Product2!$D$2:$D$8,">=1"),INDEX(Product2!A$2:A$8,SMALL(IF(Product2!$D$2:$D$8>=1,ROW(Product2!$D$2:$D$8)-ROW(Product2!$D$2)+1),ROW()-COUNTIF(Product1!$D$2:$D$8,">=1")-1)),""))
confirmed with CTRL+SHIFT+ENTER and copied across 4 columns and down to row 17 (to cover all 8 items from each product sheet).
How about if i want to add one more list in this??
=IF(ROW()-1<=COUNTIF(Product1!$D$2:$D$8,">=1"),INDEX(Product1!A$2:A$8,SMALL(IF(Product1!$D$2:$D$8>=1,ROW(Product1!$D$2:$D$8)-ROW(Product1!$D$2)+1),ROW()-1)),
IF(ROW()-COUNTIF(Product1!$D$2:$D$8,">=1")-1<=COUNTIF(Product2!$D$2:$D$8,">=1"),INDEX(Product2!A$2:A$8,SMALL(IF(Product2!$D$2:$D$8>=1,ROW(Product2!$D$2:$D$8)-ROW(Product2!$D$2)+1),ROW()-COUNTIF(Product1!$D$2:$D$8,">=1")-1)),""))
IF(ROW()-COUNTIF(Product2!$D$2:$D$8,">=1")-1<=COUNTIF(Product3!$D$2:$D$8,">=1"),INDEX(Product3!A$2:A$8,SMALL(IF(Product3!$D$2:$D$8>=1,ROW(Product3!$D$2:$D$8)-ROW(Product3!$D$2)+1),ROW()-COUNTIF(Product2!$D$2:$D$8,">=1")-1)),""))
After i add "Product3", and add the above code but i can't accept, what's wrong of my code
Thx
Bookmarks